/* Variables y estilos base */
:root {
    --primary-color: #5c5b5bdc;
    --secondary-color: #ffffff;
    --accent-color: #00b646;
    --button-hover: #244e26;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --section-padding: 50px 0;
    --max-content-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poiret One', Arial, sans-serif;
    /*overflow: auto !important;*/
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 73px; /* Ajusta según la altura de tu navbar */
}
 

body {
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-top: 73px; /* Igual que el scroll-padding-top */
}

/* Añade esto a tu CSS */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


/* -------------------------------------------------
   ESTRUCTURA DE SECCIONES
------------------------------------------------- */
.section {
    width: 100%;
    padding: var(--section-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 2px solid rgba(0, 0, 0, 0.8);
    /*scroll-margin-top: 77px;*/
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.08);*/
}

.section-content {
    width: 60%;
    max-width: var(--max-content-width);
}

.section_bg_impar {
    background: var(--secondary-color);
}

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

@media (max-width: 1024px) {
    .section-content {
        width: 90%;
    }
}

@media (max-width: 768px) {

    .section-content {
        width: 90%;
    }
}

@media (max-width: 480px) {

    
    .section-content {
        width: 90%;
    }
}

/* -------------------------------------------------
   NAVBAR
------------------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

/* Menú desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: black;
    font-weight: 700;
    font-size: 1.3rem;
    transition: color 0.3s;
}

/* Subrayado animado */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.contact-btn .btn {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border:1px solid var(--button-hover)
}

.contact-btn .btn:hover {
    background-color: var(--button-hover);
}

/* Botón hamburguesa (oculto en desktop) */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    left: 0;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.45rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.8); /* Menos transparencia para mejor legibilidad */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Cambiado de center a flex-start */
        padding-top: 20px;
        gap: 1.5rem;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        overflow-y: auto; /* Permite scroll si el menú es muy largo */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        display: block;
        padding: 12px 0;
        }

    .nav-links a::after {
        opacity: 0;
        transition: width 0.3s, opacity 0.3s;
    }

    .nav-links a:active::after {
        width: 100%;
        opacity: 1;
        transition: width 0.2s;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .navbar::after {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 999;
    }

    .nav-links.active ~ .navbar::after {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: block;
    }
}



/* -------------------------------------------------
   TIPOGRAFÍA Y ELEMENTOS DE TEXTO
------------------------------------------------- */
h1, h2, h3 {
    text-align: center;
    margin-bottom: 25px;
}

h1 {
    font-size: 35px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 25px;
}

p {
    font-size: 20px;
    text-align: center;
    margin: 0 0 15px 0;
    font-weight: 550;
}

ul {
    list-style: none;
    font-size: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    p, ul {
        font-size: 20px;
    }
}

/* -------------------------------------------------
   CARRUSEL DE IMÁGENES
------------------------------------------------- */
.carousel-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.play-pause-btn-carousel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.play-pause-btn-carousel:hover {
    background: rgba(255, 255, 255, 0.5);
    color: rgba(0, 0, 0, 0.5);
}

/* Thumbnails */
.thumbnails-container {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

.thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.thumbnails img.active,
.thumbnails img:hover {
    opacity: 1;
}

.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 0;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

@media (max-width: 768px) {
    .thumb-arrow {
        display: flex;
    }
    
    .carousel img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .carousel img {
        height: 250px;
    }
    
    .thumbnails img {
        width: 60px;
        height: 60px;
    }
}

/* -------------------------------------------------
   SECCIÓN DE VIDEOS 3D
------------------------------------------------- */
.paseo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.paseo-row.reverse {
    flex-direction: row-reverse;
}

.paseo-text, .paseo-media {
    flex: 1;
    min-width: 300px;
    text-align: left !important;
}

.paseo-media video {
    width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: none;
}

@media (max-width: 1024px) {
    .paseo-row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .paseo-row {
        flex-direction: column;
        margin: 40px 0;
    }
    
    .paseo-text, .paseo-media {
        min-width: 100%;
    }
}

.paseo-media {
    position: relative;
}

.paseo-media .play-pause-btn-carousel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    font-size: 1rem;
}

/* -------------------------------------------------
   SECCIÓN DE SERVICIOS (TARJETAS)
------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 80%;
    max-width: var(--max-content-width);
    margin: 30px auto;
}

.service-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    height: 300px;
}

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

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.service-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    border-radius: var(--border-radius);
}

.service-overlay:hover {
    background: rgba(209, 250, 208, 0.9);
    border:2px solid var(--accent-color)
}

.service-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: #000000;
}

.service-description {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #464545;
    /*text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);*/
}


.service-button {
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-button:hover {
    background-color: var(--button-hover);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        width: 100% ;
    }
}

/* -------------------------------------------------
   MODAL PARA DETALLES DE SERVICIO
------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #000;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #555;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* -------------------------------------------------
   FORMULARIO DE CONTACTO
------------------------------------------------- */
/* Estilos del formulario */

.grecaptcha-badge {
    visibility: hidden;
}

.section-content-form {
    display: flex;
    justify-content: center;  /* centra horizontalmente */
    align-items: center;      /* centra verticalmente si deseas */
    flex-direction: column;   /* mantiene vertical el contenido */
    max-width: 1000px;
    margin: 0 auto;
    font-size: 30px !important;

}
.contact-form {
    margin-top: 3rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    align-content: center;
    justify-content: center;
    background-color: rgba(0, 128, 0, 0.11);
    border-radius: 5px;
    width: 90%;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 0.5rem 0.5rem;
    font-size: 1.2rem;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #007bff;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.5rem) scale(0.8);
    color: #007bff;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--accent-color) !important;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: none;
}

.underline {
    height: 2px;
    width: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.form-input:focus ~ .underline {
    width: 100%;
}

/* Estilos del checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.form-checkbox {
    margin-right: 0.5rem;
    width: auto;
}

.checkbox-label {
    font-size: 1.1rem;
    color: #666;
}

.checkbox-label a {
    color: #007bff;
    /*text-decoration: none;*/
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Estilos del botón */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-text {
    margin-right: 0.5rem;
    font-weight: bold;
}

.btn-icon {
    font-size: 1rem;
}

/* Mensajes de error y éxito */
.form-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    height: 1rem;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */
.site-footer {
    background-color: #000000;
    color: #ecf0f1;
    padding: 40px 0 20px;
    width: 100%;
    font-family: "Poiret One", serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 10px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ecf0f1;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .footer-section {
        flex: 100%;
        text-align: center !important;
    }

    .footer-section h3 {
        flex: 100%;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* -------------------------------------------------
   BOTÓN VOLVER ARRIBA
------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #000000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2),
              -3px -3px 6px rgba(255, 255, 255, 0.1);
    border: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.back-to-top i {
    font-size: 1.2rem;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

