/* Generales y Reset */
:root {
--primary-color: #4CAF50; /* Verde vibrante */
--secondary-color: #FFC107; /* Amarillo cálido */
--accent-color: #2196F3; /* Azul para detalles */
--text-dark: #333;
--text-light: #f4f4f4;
--bg-light: #f9f9f9;
--bg-dark: #2c3e50; /* Azul oscuro para secciones */
--header-bg: rgba(44, 62, 80, 0.95); /* Azul oscuro semitransparente */
--border-radius-base: 8px;
--transition-speed: 0.3s ease;
}

*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html, body {
overflow-x: hidden; /* Esto es CLAVE para evitar el scroll horizontal */
}

body {
font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-dark);
background-color: #fff;
scroll-behavior: smooth;
padding-top: 60px; /* Espacio para el header fijo */
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem; /* Padding base para desktop/tablet */
}

.section-padding {
padding: 4rem 0;
}

.text-center {
text-align: center;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: var(--text-light); }

h1, h2, h3, h4 {
margin-bottom: 1rem;
line-height: 1.2;
color: var(--text-dark);
}
.text-white h1, .text-white h2, .text-white h3, .text-white h4 {
color: var(--text-light);
}

h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
}

p {
margin-bottom: 1rem;
}

.lead-text {
font-size: 1.25rem;
max-width: 800px;
margin: 0 auto 2rem;
color: #666;
}
.text-white .lead-text {
color: #bbb;
}

a {
color: var(--primary-color);
text-decoration: none;
transition: color var(--transition-speed);
}
a:hover {
color: var(--accent-color);
}

.btn {
display: inline-block;
padding: 0.8rem 1.8rem;
border-radius: var(--border-radius-base);
text-transform: uppercase;
font-weight: bold;
font-size: 1rem;
cursor: pointer;
border: none;
transition: background-color var(--transition-speed), transform 0.2s ease;
text-align: center;
white-space: normal; /* CORRECCIÓN: Permite que el texto del botón se envuelva por defecto */
}

.btn:hover {
transform: translateY(-3px);
}

.btn.primary-btn {
background-color: var(--primary-color);
color: white;
}
.btn.primary-btn:hover {
background-color: #388E3C; /* Un verde más oscuro */
}

.btn.secondary-btn {
background-color: var(--secondary-color);
color: var(--text-dark);
}
.btn.secondary-btn:hover {
background-color: #FFB300; /* Un amarillo más oscuro */
}

.btn.small-btn {
padding: 0.6rem 1.2rem;
font-size: 0.9rem;
}
.btn.large-btn {
padding: 1.2rem 2.5rem;
font-size: 1.15rem;
}

/* Header */
.main-header {
background-color: var(--header-bg);
color: var(--text-light);
padding: 1rem 0;
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
display: flex;
justify-content: space-between;
align-items: center;
}

.main-header .logo {
font-size: 1.8rem;
font-weight: bold;
color: var(--text-light);
margin: 0;
}
.main-header .logo a {
color: var(--text-light);
}

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

.main-nav ul li {
margin-left: 2rem;
}

.main-nav ul li a {
color: var(--text-light);
font-weight: 500;
font-size: 1.1rem;
transition: color var(--transition-speed);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
color: var(--secondary-color);
}

.menu-toggle {
display: none;
font-size: 1.8rem;
cursor: pointer;
color: var(--text-light);
}

/* Hero Slider */
.hero-slider {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}

.slider-container {
display: flex;
height: 100%;
transition: transform 0.7s ease-in-out;
}

.slide {
min-width: 100%;
height: 100%;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-light);
text-align: center;
position: relative;
}

.slide::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}

.slide-content {
position: relative;
z-index: 2;
max-width: 800px;
padding: 1rem;
}

.slide-content h2 {
font-size: 3.5rem;
margin-bottom: 1rem;
color: var(--text-light);
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content p {
font-size: 1.5rem;
margin-bottom: 2rem;
color: var(--text-light);
text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.slider-control {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 1rem 1.2rem;
cursor: pointer;
font-size: 1.5rem;
z-index: 10;
transition: background-color var(--transition-speed);
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
}
.slider-control:hover {
background-color: rgba(0, 0, 0, 0.7);
}
.slider-control.prev { left: 1.5rem; }
.slider-control.next { right: 1.5rem; }

/* One Column Section with SVG */
.one-column-section {
padding: 6rem 0;
}
.svg-wrapper {
margin-bottom: 2rem;
display: flex;
justify-content: center;
align-items: center;
}

/* Two Column Sections (Intercaladas) */
.two-column-section {
display: flex;
align-items: center;
gap: 3rem;
margin-bottom: 4rem;
}

.two-column-section:last-of-type {
margin-bottom: 0;
}

.two-column-section .col-image {
flex: 1;
min-width: 0;
}

.two-column-section .col-image img,
.two-column-section .col-image video {
max-width: 100%;
height: auto;
display: block;
border-radius: var(--border-radius-base);
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.two-column-section .col-text {
flex: 1;
}

.two-column-section.image-left {
flex-direction: row;
}

.two-column-section.image-right {
flex-direction: row-reverse;
}

.features-list {
list-style: none;
padding: 0;
margin-top: 1.5rem;
margin-bottom: 2rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.8rem;
font-size: 1.1rem;
}

.features-list li {
display: flex;
align-items: center;
gap: 0.7rem;
}

.features-list li i {
color: var(--primary-color);
font-size: 1.2rem;
}

/* Contact Form Section */
.contact-form {
max-width: 700px;
margin: 2rem auto 0;
background-color: rgba(255, 255, 255, 0.1);
padding: 3rem;
border-radius: var(--border-radius-base);
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.form-group {
margin-bottom: 1.5rem;
text-align: left;
}

.form-group label {
display: block;
margin-bottom: 0.7rem;
font-weight: bold;
font-size: 1.1rem;
color: var(--text-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea {
width: 100%;
padding: 1rem;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: var(--border-radius-base);
background-color: rgba(255, 255, 255, 0.05);
color: var(--text-light);
font-size: 1rem;
transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
background-color: rgba(255, 255, 255, 0.1);
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
filter: invert(1);
}
.form-group input[type="date"] {
color-scheme: dark;
}

/* Footer */
.main-footer {
background-color: #333;
color: #ccc;
padding: 2rem 0;
font-size: 0.9rem;
}

.main-footer p {
margin: 0;
}

/* --- Gallery Section Styles --- */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-top: 3rem;
}

.gallery-item {
display: block;
overflow: hidden;
border-radius: var(--border-radius-base);
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
width: 100%;
height: 250px;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}

.gallery-item img:hover {
transform: scale(1.05);
}

/* --- Lightbox/Modal Styles --- */
.lightbox {
display: none;
position: fixed;
z-index: 9999;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
margin: auto;
display: block;
max-width: 90%;
max-height: 85vh;
border-radius: var(--border-radius-base);
box-shadow: 0 0 20px rgba(0,0,0,0.5);
animation-name: zoom;
animation-duration: 0.6s;
}

@keyframes zoom {
from {transform: scale(0.1)}
to {transform: scale(1)}
}

.close-btn {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
cursor: pointer;
line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}

.lightbox-caption {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: #ccc;
padding: 10px 0;
font-size: 1.1rem;
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-button-container {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 1000;
}

.whatsapp-button-container a {
display: flex;
align-items: center;
justify-content: center;
background-color: #25D366;
color: white;
width: 60px;
height: 60px;
border-radius: 50%;
font-size: 30px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
text-decoration: none;
transition: transform 0.3s ease;
}

.whatsapp-button-container a:hover {
transform: scale(1.1);
background-color: #1DA851;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* Responsive Design */

/* MEDIA QUERY para pantallas entre 769px y 992px (tablets grandes) */
@media (max-width: 992px) {
.main-nav ul li {
    margin-left: 1.5rem;
}
.slide-content h2 {
    font-size: 2.8rem;
}
.slide-content p {
    font-size: 1.3rem;
}
/* El container se ajusta más a los bordes en tablets */
.container {
    padding: 0 1rem; /* Reducir el padding horizontal */
}
/* En este rango, las two-column-section siguen siendo dos columnas */
/* Pero aseguramos que el texto esté alineado a la izquierda */
.two-column-section .col-text {
    text-align: left;
}
.features-list { /* Permitir que la lista sea más ancha en tablets */
    grid-template-columns: 1fr; /* Apilamos las características para que no se vean apretadas */
    max-width: none; /* Eliminar restricción de ancho para que ocupe el espacio disponible */
    margin-left: 0; /* Asegurar alineación izquierda */
    margin-right: 0;
}
}

/* MEDIA QUERY para pantallas hasta 768px (móviles y tablets pequeñas) - CORRECCIONES CLAVE AQUÍ */
@media (max-width: 768px) {
.menu-toggle {
    display: block;
    z-index: 1001;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-in-out;
    z-index: 1000;
}

.main-nav.active {
    transform: translateX(0);
}

.main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}
.main-nav ul li {
    margin-left: 0;
}
.main-nav ul li a {
    font-size: 1.5rem;
    padding: 0.5rem 0;
    display: block;
}

/* CORRECCIÓN PRINCIPAL PARA LAS "TWO COLUMNS": Apila columnas en tablets pequeñas y móviles */
.two-column-