:root {
	--primary-color: #00aad4;
	--secondary-color: #004455;
	--accent-color: #00566b;
	--light-color: #ecf0f1;
	--dark-color: #1f1f1f;
	--text-color: #333;
	--text-light: #fff;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Roboto', sans-serif;
}

body {
	color: var(--text-color);
	line-height: 1.25;
}

/* Estilos generales */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

section {
	padding: 60px 0;
}

h2 {
	font-size: 2.5rem;
	margin-bottom: 30px;
	color: var(--primary-color);
	text-align: center;
	position: relative;
}

h3 {
	font-size: 1.8rem;
	margin-bottom: 15px;
	color: var(--primary-color);
}

p {
	margin-bottom: 15px;
}


.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 64px;
  vertical-align:middle;
}

.btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--secondary-color);
	color: var(--text-light);
	border: none;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
	font-size: 1rem;
}

.btn:hover {
	background: var(--accent-color);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header y navegación */
header {
	background-color: var(--primary-color);
	color: var(--text-light);
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body > footer:nth-child(10) {
	background-color: var(--primary-color);
	color: var(--text-light)
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slogan {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
    margin-top: 5px;
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 30px;
}

.nav-links a {
	color: var(--text-light);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--accent-color);
}

.hamburger {
	display: none;
	cursor: pointer;
}

/* Hero / Carousel */
.hero {
  position: relative;
  /*height: 100vh;*/
  overflow: hidden;
  /*margin-top: 78px;  Ajusta según tu header */
  background-color: #ecf0f1;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel {
  display: flex;
  width: 300%;
  height: 100vh !Important;
  transition: transform 0.5s ease;
}

.carousel-controls {
    
}

.slide {
  position: relative;
  width: 33.3333%; /* 100% / 3 slides */
  height: 100%;
  flex-shrink: 0;
}

/* Usa pseudo-elementos para los backgrounds */
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: -1;
}

.slide-1::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                   url('../images/slides/slide-3.webp');
}

.slide-2::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                   url('../images/slides/slide-1.webp');
}

.slide-3::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                   url('../images/slides/slide-2.webp');
}

/* Respeta relación de aspecto en móviles */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
  }
  
  .slide::before {
    background-attachment: scroll; /* Mejor rendimiento en móvil */
  }
}

.jumbotron {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: var(--text-light);
	width: 80%;
	max-width: 800px;
}

.jumbotron h2 {
	font-size: calc(3.5rem * 1vw);
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.jumbotron p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-controls {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
}

.control-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	margin: 0 8px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.control-dot.active {
	background: var(--secondary-color);
}

/* Servicios */
.services {
	background-color: var(--light-color);
}

.services-intro {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 50px;
}

.services-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.service-card {
	flex: 1 1 300px;
	max-width: 350px;
	background: var(--text-light);
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	text-align: center;
}

.service-card:hover {
	transform: translateY(-10px);
}

.service-icon {
	font-size: 3rem;
	color: var(--secondary-color);
	margin-bottom: 15px;
}
.service-icon .material-symbols-outlined {
	font-size: 3rem;
}


/* Quiénes somos */
.about {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 50px;
}

.about-image {
	flex: 1 1 300px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
	width: 100%;
	height: auto;
	display: block;
}

.about-content {
	flex: 1 1 300px;
}

/* Blog */
.blog {
	background-color: var(--light-color);
}

.blog-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.blog-card {
	flex: 1 1 300px;
	max-width: 350px;
	background: var(--text-light);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-10px);
}

.blog-image {
	height: 200px;
	overflow: hidden;
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
	transform: scale(1.1);
}

.blog-content {
	padding: 20px;
}

.blog-content h3 {
	/*line-height: 1.25;*/
}

.blog-content p {
	margin-bottom: 20px;
	color: #666;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 2000;
	overflow-y: auto;
}

.modal-content {
	background: var(--text-light);
	width: 90%;
	max-width: 800px;
	margin: 50px auto;
	padding: 60px;
	border-radius: 10px;
	position: relative;
}

.modal-content img {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--secondary-color);
}

/* Contacto */
.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
}

.contact-info {
	flex: 1 1 300px;
	background: var(--primary-color);
	color: var(--text-light);
	padding: 40px;
	border-radius: 10px;
}

.contact-info h3 {
	color: var(--text-light);
}

.contact-info p {
	margin-bottom: 20px;
}

.contact-info i {
	margin-right: 10px;
	color: var(--accent-color);
}

.contact-form {
	flex: 1 1 300px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.form-group textarea {
	height: 150px;
	resize: vertical;
}



/* Footer */
footer {
	background: var(--primary-color);
	color: var(--text-light);
	text-align: center;
	padding: 20px 0;
}

/* PWA Install Prompt */
.install-prompt {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary-color);
	color: var(--text-light);
	padding: 15px 25px;
	border-radius: 5px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 15px;
	z-index: 3000;
	display: none;
}

.install-prompt button {
	background: var(--secondary-color);
	color: var(--text-light);
	border: none;
	padding: 8px 15px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.install-prompt button:hover {
	background: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
	.hamburger {
		display: block;
	}
	
	.nav-links {
		position: fixed;
		top: 70px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 70px);
		background: var(--primary-color);
		flex-direction: column;
		align-items: center;
		padding-top: 30px;
		transition: left 0.3s ease;
	}
	
	.nav-links.active {
		left: 0;
	}
	
	.nav-links li {
		margin: 15px 0;
	}
	
	.jumbotron h1 {
		font-size: 2.5rem;
	}
	
	.about-image, .about-content {
		flex: 1 1 100%;
	}
	
	.contact-info, .contact-form {
		flex: 1 1 100%;
	}
}

#rotate-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 20px;
}

.rotate-container {
  animation: pulse 2s infinite;
}

.rotate-container i {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (orientation: portrait) {
  .carousel {
    height: 100vh !important;
  }
  #rotate-message {
    display: none !important;
  }
}

@media (orientation: landscape) and (max-width: 768px) {
  .carousel {
    height: 100vh !important;
  }
  
  .jumbotron {
    transform: translate(-50%, -50%) scale(0.8);
    width: 90% !important;
  }
  
  .jumbotron h1 {
    font-size: 2rem !important;
  }
  
  .jumbotron p {
    font-size: 1rem !important;
  }
}
