/* Base Styles */
:root {
    --primary-color: #1e5945;
    --primary-color-transparent: #1e5945e0;
    --secondary-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #222;
    --text-color: #333;
    --white: #fff;
    --max-width: 1200px;
    --border-radius: 8px; 
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --linear-gradient-color-1: #1e5945;
    --linear-gradient-color-2: #1a4d3c;

}



/* :root {
    --primary-color: #a67f00;
    --primary-color-transparent: #a67f00d3;
    --secondary-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #222;
    --text-color: #333;
    --white: #fff;
    --max-width: 1200px;
    --border-radius: 8px; 
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --linear-gradient-color-1: #a67f00;
    --linear-gradient-color-2: #967301; 
} */

/* :root {
    --primary-color: #a61300;
    --primary-color-transparent: #a61300e0;
    --secondary-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #222;
    --text-color: #333;
    --white: #fff;
    --max-width: 1200px;
    --border-radius: 8px; 
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --linear-gradient-color-1: #a61300;
    --linear-gradient-color-2: #971301; 
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    
    font-family: 'Merriweather', serif; 
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    letter-spacing: -0.02em; 
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 3.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3); 
}

h2 {
    font-size: 2.6rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

h3 {
    font-size: 1.7rem;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555; 
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

img {
    width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* Animación de entrada para secciones al hacer scroll */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headers */
.section-header {
    margin-bottom: 40px;
}

.section-header .subtitle {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Subrayado animado para h2 */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.section-header:hover h2::after {
    width: 100px;
}

.separator {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin-top: 20px;
    transition: width 0.5s ease;
    /* Transición para el separador */
}

.section-header:hover .separator {
    width: 80px;
    /* Animación al pasar el ratón */
}

.separator.center {
    margin-left: auto;
    margin-right: auto;
}

.centered {
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 30px;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
    /* Sombra para botones */
    position: relative;
    overflow: hidden;
    /* Para efectos de hover */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--linear-gradient-color-1), var(--linear-gradient-color-2));


}

/* Efecto de luz para botones principales */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Animación para botón de envío */
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.7s ease;
}

button[type="submit"]:hover::before {
    left: 100%;
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    /* Inicialmente transparente */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 5px 0;
    /* Mayor altura inicial */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: var(--white);
    font-size: 1.4rem;
    /* Ligeramente más grande */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
    /* Mejora tipográfica */
}

.navbar.scrolled {
    background-color: var(--primary-color-transparent);
    /* Inicialmente transparente */
    padding: 6px 0;
    /* Mayor altura inicial */
}


.navbar.scrolled .logo {
    font-size: 1.25rem;
    /* Se reduce al hacer scroll */
}

.navbar .logo:hover {
    text-decoration: none;
    color: var(--white);
}

.nav-wrapper {
    display: flex;
}

/* Mejoras para los elementos del menú */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 18px;
    /* Mayor espacio entre elementos */
}

.menu a {
    color: var(--white);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    opacity: 0.9;
    /* Ligeramente transparente */
}

.navbar.scrolled .menu a {
    font-size: 1.1rem;
    /* Se reduce al hacer scroll */
}

.menu a:hover {
    opacity: 1;
}

/* Indicador de elemento activo mejorado */
.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
    transform-origin: left center;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

/* Mejora para el número de teléfono */
.phone-number a {
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 4px 15px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    /* Fondo sutil */
    transition: all 0.3s ease;
}

.phone-number a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.phone-number i {
    margin-right: 8px;
}

/* Ajuste del menú hamburguesa para móviles */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    /* Más delgado para un aspecto moderno */
    background-color: var(--white);
    position: absolute;
    left: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* Hero Section with Slideshow */
/* Slideshow mejorado sin parpadeos */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: #000;
    /* Fondo negro para evitar flashes blancos */
    background-size: cover;
    background-position: center;
    background-image: url('../images/gallery/2017_0929_15173500.jpg');
    overflow: hidden;
}

/* Capa oscura para mejorar legibilidad del texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Eliminar la animación conflictiva original */
.hero {
    animation: none;
}

/* Contenedor de slides */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cada slide es una capa independiente */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;

    z-index: 0;
}

/* Slides individuales con sus imágenes específicas */

.slide:nth-child(1) {
    background-image: url('../images/gallery/2017_0929_17040000.jpg');
    animation: slideAnimation 20s infinite;
}

.slide:nth-child(2) {
    background-image: url('../images/gallery/2017_0929_17013200.jpg');
    animation: slideAnimation 20s infinite 5s;
    /* 5s de retraso */
}

.slide:nth-child(3) {
    background-image: url('../images/gallery/2017_0929_15173500.jpg');
    animation: slideAnimation 20s infinite 10s;
    /* 10s de retraso */
}

.slide:nth-child(4) {
    background-image: url('../images/gallery/2017_0929_15181600-1024x576.jpg');
    animation: slideAnimation 20s infinite 15s;
    /* 15s de retraso */
}

/* Animación suave para cada slide */
@keyframes slideAnimation {

    0%,
    20% {
        opacity: 0;
    }

    25%,
    45% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Aseguramos que el contenido esté por encima de los slides */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
    animation: fadeIn 1.5s ease;
}

.hero-content p {
    color: var(--white);
}

/* Función para precargar las imágenes (se activa con JS) */
.preload {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.65rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    background: linear-gradient(to bottom, #fff, #f9f9f9);
    /* Gradiente sutil */
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.about-text {
    padding: 30px 0;
}

/* CTA Section */
/* CTA Section Updated - Elements in opposite corners */
.cta {
    background: linear-gradient(135deg, var(--linear-gradient-color-1), var(--linear-gradient-color-2));
    /* Gradiente de color */
    color: var(--white);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

/* Partículas decorativas para CTA */
.cta::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 140px;
    height: 140px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: left;
}

.cta-button {
    text-align: right;
}

.cta h2 {
    margin-bottom: 10px;
    animation: pulse 2s infinite;
    /* Animación sutil para llamar la atención */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.cta h3 {
    margin-bottom: 0;
    font-weight: 400;
}


/* Services Section */
.services {
    background: linear-gradient(to bottom, #f4f4f4, #e9e9e9);
    /* Gradiente sutil */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* Services and Gallery Section - Layout Modifications */
.services-gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.services-column .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Services items modifications */
.service-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-right: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #008c43;
}

/* Gallery Collage */
.gallery-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 15px;
    height: 100%;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Different sizes for collage effect */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 300px;
}

.gallery-item.medium {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
}

.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 150px;
}

.view-more-gallery {
    margin-top: 20px;
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Contact Section */
.contact {
    background-color: var(--white);
    position: relative;
    /* Para el patrón de fondo */
}

/* Decoración para sección de contacto */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%2300a65133"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    /* Para estar por encima del patrón */
}

.contact-info h2 {
    margin-bottom: 30px;
    line-height: 1.4;
}

.address {
    margin-top: 30px;
}

.address p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.address p i {
    color: var(--primary-color);
    margin-right: 10px;
    transition: transform 0.3s ease;
    /* Animación para íconos */
}

.address p:hover i {
    transform: scale(1.2);
}

/* Estilos para el formulario de contacto mejorado */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.submit-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

.submit-btn:hover:after {
    animation: ripple 1s ease-out;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    /* Más espacio */
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.2);
    transform: translateY(-2px);
    outline: none;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo para el footer */
footer::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
}

.copyright {
    margin: 0;
    font-size: 1rem;
}

.copyright a{
   font-size: 1rem;
       color:#555;

}

/* Loi 25 Button */
.loi25-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    width: 90px;
    height: 90px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loi25-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Video Container */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.video-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.video-container iframe {
    border-radius: var(--border-radius);
}

.loi25-button img {
    width: 80%;
    height: auto;
}

/* Slideshow Animation - Usando un enfoque de capas superpuestas */

/* Estilos para la información de la agencia */
.agency-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.agency-info img {
    max-width: 120px;
    margin: 0 auto 15px;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.agency-info img:hover {
    transform: scale(1.05);
}

.agency-info p {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.agency-info a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.agency-info a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 992px) {
    .services-gallery-container {
        grid-template-columns: 1fr;
        /* Una sola columna en tablet */
    }

    .gallery-collage {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .hamburger {
        display: block;
        /* Mostrar menú hamburguesa */
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), #008c43);
        /* Gradiente para el menú */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .menu a {
        font-size: 1.4rem;
        display: block;
        padding: 12px 0;
    }

    .phone-number {
        position: absolute;
        bottom: 50px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .phone-number a {
        display: inline-flex;
        margin: 0 auto;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .video-container iframe {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .agency-info {
        margin-top: 30px;
        padding-top: 20px;
    }

    .agency-info img {
        max-width: 100px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services-column .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-collage {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small {
        grid-column: span 1;
        min-height: auto;
        aspect-ratio: 16/9;
    }

    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .video-container iframe {
        height: 300px;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar .container {
        justify-content: space-between;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        /* Más ancho */
        height: 100vh;
        background: linear-gradient(to right, var(--primary-color), #008c43);
        /* Gradiente para el menú */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 99;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        height: 100%;
    }

    .menu li {
        margin: 15px 0;
        width: 100%;
    }

    .menu a {
        color: var(--white);
        /* Cambiado para mejor contraste */
        display: block;
        width: 100%;
        font-size: 1.2rem;
        padding: 12px 0;
    }

    .menu a::after {
        background-color: rgba(255, 255, 255, 0.5);
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        margin-top: 20px;
    }

    .loi25-button {
        width: 70px;
        height: 70px;
        bottom: 20px;
        left: 20px;
    }

    .cta-grid {
        flex-direction: column;
        gap: 20px;
    }

    .cta-content,
    .cta-button {
        text-align: center;
        width: 100%;
    }

    .cta h3 {
        margin-bottom: 20px;
    }

    .menu li {
        margin: 0 12px;
        /* Menos espacio en tablets */
    }

    .navbar .logo {
        font-size: 1.4rem;
    }

    .phone-number a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .video-container iframe {
        height: 200px;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Puntero personalizado para desktop */
@media (min-width: 1024px) {

    .btn,
    .service-item,
    .gallery-item {
        cursor: pointer;
    }
}