:root {
    --primary-color: #006eff;
    --hover-color: #f14501;
    --text-color: #fff;
    --header-bg: rgb(0 110 255 / 40%);
    --header-bg-scrolled: rgb(0 110 255 / 80%);
    --index-color: #f14501;
    --nav-height: 85px;
    --logo-height: 75px;
    --logo-height-scrolled: 65px;
    --logo-height-mobile: 55px;
    --logo-height-mobile-scrolled: 45px;
    --font-family: Arial, sans-serif;
    --text-size-base: 1.1rem;
    --text-size-mobile: 0.9rem;
    --transition: all 0.3s ease-in-out;
    --blur-intensity: 5px;
    --blur-intensity-mobile: 10px;
}


/* Reset y estilos base */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
}


/* Header principal */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(var(--blur-intensity));
    transition: var(--transition);
}

.header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: 0 2px 10px transparent;
}


/* Logo */

.header__logo img {
    height: var(--logo-height);
    width: auto;
    transition: var(--transition);
}

.header.scrolled .header__logo img {
    height: var(--logo-height-scrolled);
}


/* Navegación */

.header__nav {
    transition: var(--transition);
}

.nav__list {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-family: var(--font-family);
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: var(--text-size-base);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}


/* Estados de navegación */

.nav__link:hover,
.nav__link:focus,
.nav__link.active {
    color: var(--hover-color);
}

.nav__link.index.active,
.nav__link.index:hover {
    color: var(--index-color);
}


/* Efecto subrayado */

.nav__link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background-color: var(--hover-color);
    transition: var(--transition);
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav__link.index::after {
    background-color: var(--index-color);
}

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link.active::after {
    width: 100%;
}


/* Menú hamburguesa */

.header__menu-btn {
    position: relative;
    left: 0%;
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}


/* Responsive */

@media (max-width: 992px) {
    .header__menu-btn {
        display: block;
    }
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        max-width: 300px;
        height: 100vh;
        background: var(--header-bg-scrolled);
        backdrop-filter: blur(var(--blur-intensity-mobile));
        padding: 80px 20px 20px;
        transition: right 0.4s ease-in-out;
    }
    .header__nav.active {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        gap: 20px;
    }
    .nav__link {
        font-size: var(--text-size-mobile);
        padding: 10px;
    }
    .header__logo img {
        height: var(--logo-height-mobile);
    }
    .header.scrolled .header__logo img {
        height: var(--logo-height-mobile-scrolled);
    }
}


/*Sub encavezado */

.projects {
    text-align: -webkit-center;
    position: relative;
    top: 85px;
    color: white;
    padding: 30px;
    overflow: hidden;
}

.nosotros-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 290%;
    object-fit: cover;
    z-index: -2;
}

.projects-contenido {
    position: relative;
    top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    font-size: 2.0rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .nosotros-video {
        height: 100%;
        position: absolute;
    }
    .projects {
        height: auto;
        min-height: 6vh;
    }
}

:root {
    --primary-color: #ff4d4d;
    --primary-dark: #d43c3c;
    --dark-bg: #191c22;
    --text-dark: #333;
    --text-light: #fff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}


/* Estructura principal */

.contact-section {
    position: relative;
    top: 85px;
    padding: 4rem 1rem;
    background: #f5f5f5;
    color: var(--text-dark);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* Detalles de contacto */

.contact-details {
    order: 2;
    padding: 1.5rem;
    background: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-header h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hover-color), transparent);
    bottom: -10px;
    left: 0;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.highlight,
.contact-info a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info a {
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    text-decoration: underline;
}


/* Mapa */

.contact-map {
    order: 1;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    display: block;
    border: none;
}


/* Botón */

.contact-button {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-button:active {
    transform: translateY(0);
}


/* Estilos del formulario */

.contact-modal {
    width: 90%;
    max-width: 500px;
    background: #191c22;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}


/* Estilos para pantallas pequeñas */

@media (max-width: 600px) {
    .contact-modal {
        width: 95%;
        padding: 20px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.contact-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.contact-modal h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 0;
    border: 1px solid #2d323d;
    border-radius: 6px;
    background: #1f232b;
    color: white;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

.modal-form textarea {
    height: 120px;
    resize: vertical;
    /* Permite ajuste vertical pero no horizontal */
}

.modal-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #ff4d4d;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 5px;
}

.modal-form button[type="submit"]:hover {
    background-color: #d43c3c;
}

.modal-form button[type="submit"]:active {
    transform: scale(0.98);
}


/* Estilos para el botón de cerrar */

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: #2d323d;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-button:hover {
    background-color: #ff4d4d;
}


/* Animaciones mejoradas */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.contact-modal[open] {
    animation: fadeIn 0.8s ease-out forwards;
}


/* Responsive */

@media (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    .contact-details {
        flex: 1;
        order: 1;
    }
    .contact-map {
        flex: 1;
        order: 2;
    }
    .contact-button {
        max-width: none;
    }
}

@media (min-width: 992px) {
    .contact-map iframe {
        height: 450px;
    }
    .contact-details {
        padding: 2rem;
    }
}


/* ====== PIE DE PÁGINA ====== */

:root {
    --footer-bg: #1a1a1a;
    --footer-text: #e0e0e0;
    --footer-accent: #ff6200;
    --footer-border: #333;
    --footer-hover: #00ccff;
}


/* Estructura principal */

.site-footer {
    position: relative;
    top: 70px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* Secciones del footer */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand img {
    width: 180px;
    height: auto;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--footer-accent);
}


/* Enlaces */

.footer-links ul,
.footer-contact address {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
    font-style: normal;
}

.footer-links a,
.footer-contact a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after,
.footer-contact a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--footer-hover);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--footer-hover);
}

.footer-links a:hover::after,
.footer-contact a:hover::after {
    width: 100%;
}


/* Iconos de contacto */

.footer-contact i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--footer-accent);
}


/* Footer inferior */

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    margin-top: 3rem;
    padding: 1.5rem;
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}


/* Responsive */

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    .footer-title {
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-legal {
        flex-direction: column;
    }
}