/* General Styles */
:root {
    --primary-color: #1e90ff; /* azul moderno */
    --secondary-color: #005fcc; /* azul profundo para contrastes */
    --heading-color: #222222;  /* tono más oscuro para títulos */
    --dark-bg: #111111;        /* para navbar/footer más sobrios */
    --light-bg: #ffffff;
    --alt-light-bg: #f7f8fa;   /* gris claro muy suave */
    --text-color-dark: #2d2d2d;
    --text-color-light: #f0f0f0;
    --navbar-height: 70px;
    --font-family: 'Inter', 'Segoe UI', sans-serif; /* tipografía más moderna */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color-dark);
    line-height: 1.7; /* un poco más de espacio para legibilidad */
    padding-top: var(--navbar-height);
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1140px; /* estilo más ancho, como en sitios modernos */
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: var(--heading-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5em;
    color: var(--heading-color);
    text-align: center;
    border: none;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8em;
    color: var(--heading-color);
}

p {
    margin-bottom: 1em;
    font-size: 1.05rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Efecto de scroll 


/* Navbar */

#navbar {
    padding: 0;
    width: 100%;
    position: fixed; 
    top: 0; 
    left: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background-color: rgba(255, 255, 255, 0) !important;
    transition: all 0.3s ease;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: -10px
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-logo:hover {
    opacity: 0.5;
}

#logo-img {
    height: auto;
    max-height: 80px;
    margin-right: 10px;
}

#nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#nav-menu a {
    color: var(--text-color-dark);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#nav-menu a:hover,
#nav-menu a.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.nav-button {
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color-dark);
    font-size: 1.8rem;
    cursor: pointer;
}



/* Hero Section */
#hero {
    background: var(--light-bg);
    position: relative;
    top: -70px;
    height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
    padding-top: 150px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--text-color-dark);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-logo {
    height: auto;
    max-width: 50%;
    z-index: 1;
}

.hero-content .btn {
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Botón Facebook estilo moderno */
.facebook-page-button {
    background-color: #1877f2;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.facebook-page-button:hover {
    background-color: #145bcc;
}

.facebook-page-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Content Sections - Adaptado para By Terrenos */
.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.alt-bg {
    background-color: #f8f9fa; /* Color similar al usado en la página */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section h2 {
    margin-bottom: 40px;
    color: #2c3e50; /* Color oscuro similar al de los títulos de la página */
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}

.content-section ul li {
    margin-bottom: 1em;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.content-section ul li:before {
    content: "•";
    color: #4CAF50; /* Color verde similar al usado en la página */
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .content-section {
        padding: 40px 15px;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}


/* Live Stream Section */
#video-container {
    position: relative;
    padding-bottom: 56.25%; /* Mantiene relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px; /* Bordes más redondeados para coincidir con el estilo del sitio */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
    margin: 30px 0 40px 0; /* Más espacio vertical */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil para contraste */
}

#video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Efecto hover para interactividad */
#video-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Estilo para el título de la sección de video */
.video-section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    #video-container {
        border-radius: 8px;
        margin: 20px 0 30px 0;
    }
    
    .video-section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
}


/* Offline Message */
#offlineMessage {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px 25px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    color: #2c3e50;
    margin: 20px 0;
}

#offlineMessage a {
    color: #4CAF50;
    font-weight: 600;
}

#offlineMessage a:hover {
    text-decoration: underline;
    color: #3e8e41;
}

#offlineMessage small {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.5;
}

#offlineMessage code {
    background-color: #e9ecef;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #212529;
}

/* About Section */
#about-section p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
    color: #4a5568; /* Color de texto más oscuro */
    line-height: 1.7; /* Mayor interlineado para mejor legibilidad */
    font-size: 1.05em; /* Tamaño de fuente ligeramente mayor */
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); /* sombra más oscura */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); /* sombra más oscura al hacer hover */
    border-color: #cbd5e0;
}

.service-icon {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.service-item h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* FAQ Section */
#faq-section h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq {
    background: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 18px 20px;
    font-size: 1.05em;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question:hover {
    background: #3e8e41;
}

.faq-icon {
    font-size: 1em;
    transition: transform 0.3s ease;
    color: white;
}

.faq-answer {
    background: #f8f9fa;
    border: none;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq.open .faq-answer {
    padding-top: 15px;
    padding-bottom: 20px;
    border-top: 1px solid #e2e8f0;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
}


/* Testimonials Section */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px; /* Para efecto 3D */
}

.testimonial-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.testimonial-item:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #4CAF50;
    transition: height 0.4s ease;
}

.testimonial-item:hover::before {
    height: 100%;
}

.testimonial-item blockquote {
    margin: 0 0 20px 0;
    font-style: italic;
    color: #4a5568;
    flex-grow: 1;
    font-size: 1.05rem;
    position: relative;
    padding-left: 30px;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.testimonial-item:hover blockquote {
    color: #2d3748;
}

.testimonial-item blockquote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-weight: 900;
    color: #4CAF50;
    font-size: 3rem;
    position: absolute;
    left: -5px;
    top: -15px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.testimonial-item:hover blockquote::before {
    opacity: 0.5;
}

.testimonial-item cite {
    font-style: normal;
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.testimonial-item cite::before {
    content: '';
    width: 20px;
    height: 1px;
    background: #4CAF50;
    display: inline-block;
}

/* Animación de entrada */
@keyframes testimonialEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-item {
    animation: testimonialEntrance 0.6s ease-out forwards;
}

/* Retraso escalonado para cada item */
.testimonial-item:nth-child(1) { animation-delay: 0.1s; }
.testimonial-item:nth-child(2) { animation-delay: 0.2s; }
.testimonial-item:nth-child(3) { animation-delay: 0.3s; }

/* gallery Section */

/* Gallery Section - Estilo principal */
#gallery-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
}

#gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

#gallery-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

#gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4CAF50;
}

#gallery-section .placeholder-text {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Estilo para cuando se agreguen imágenes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 4/3;
}

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

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

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

/* Efecto de fondo difuminado (como solicitaste) */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(20px) saturate(1.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 0.6;
}

/* Efecto de superposición */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    #gallery-section {
        padding: 60px 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

/* Contact Section - Estilo esencial */
#contact-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.contact-details {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-details h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
}

.contact-details h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4CAF50;
}

.contact-details p, 
.contact-details a {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    display: inline;
    margin-bottom: 0;
    font-weight: 500;
}

.contact-details p {
    margin-bottom: 0;
}

.contact-details a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #3e8e41;
    text-decoration: underline;
}

.contact-details i {
    color: #4CAF50;
    font-size: 1.3rem;
}

/* Efecto decorativo minimalista */
#contact-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    z-index: 0;
}



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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background-color: rgba(215, 204, 204, 0.625);
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    #nav-menu a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #nav-menu li:last-child a {
        border-bottom: none;
    }

    #nav-menu .nav-button {
        margin: 1px auto;
        width: fit-content;
        left: 20%;
    }

    #mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 18px;
        z-index: 1100;
    }

    #mobile-menu-toggle.active .fa-bars {
        position: relative;
        left: 0;
    }

    .content-section {
        padding: 40px 0;
    }
}