:root {
    --blue-dark: #003A70;
    /* azul del texto y parte oscura del icono */
    --blue-main: #00589D;
    /* azul medio del círculo/mano */
    --teal-main: #00B6C9;
    /* turquesa de la mano clara */
    --teal-light: #27D4E2;
    /* versión más clara para acentos/hover */
    --bg-soft: #F3F8FC;
    /* fondo suave general */
}


/* RESET BÁSICO */

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

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-light);
    background-color: var(--bg-main);
}


/* Fondo general tipo presentación */

.bg-dibu {
    background-image: url("../assets/img/bg-escritorio.jpg");
    /* cambia al fondo real */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    /* fondo claro */
    color: var(--blue-dark);
    border-bottom: 2px solid var(--teal-main);
}

.main-nav a {
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

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


/* botón hamburguesa en móvil */

.nav-toggle span {
    background: var(--blue-dark);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
}

.logo-sub {
    font-size: 0.7rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}


/* Botón hamburguesa */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}


/* MAIN */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}


/* SECCIONES */

.section-overlay {
    background: var(--bg-overlay);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    margin-bottom: 2rem;
}

.section-full .section-inner {
    padding: 2.5rem 2.5rem 2.8rem;
}

.section-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    text-transform: uppercase;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.8rem;
    letter-spacing: 0.16em;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.5rem;
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.section-subtitle {
    font-size: 1.4rem;
    text-transform: none;
    margin-top: 0;
    margin-bottom: 1.1rem;
}

.section-inner p {
    line-height: 1.7;
    max-width: 65rem;
    margin: 0 auto 1rem;
}


/* LAYOUT DIVIDIDO */

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2.25rem 2.5rem;
}

.section-text p {
    line-height: 1.7;
}

.section-media img {
    width: 100%;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}


/* VALORES */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    text-align: left;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}

.value-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.value-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}


/* LISTAS */

.bullet-list {
    padding-left: 1.2rem;
    margin: 0;
}

.bullet-list li {
    margin-bottom: 0.4rem;
    color: var(--muted);
}


/* TARJETA GRANDE POR QUÉ ELEGIRNOS */

.card-large {
    background: var(--card-soft);
    border-radius: 18px;
    padding: 2rem 2.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}


/* FOOTER / CONTACTO */

.site-footer {
    background: rgba(1, 10, 22, 0.98);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 3rem;
    color: var(--teal-light);
}

.site-footer .footer-overlay {
    max-width: 1200px;
    margin: 0 auto 1.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

.footer-title {
    font-size: 1.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1.4rem;
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: -0.45rem;
    left: 0;
    width: 140px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.footer-item {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.footer-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.footer-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.2rem;
}

.footer-link {
    color: var(--accent-soft);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-company {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.footer-desc {
    margin: 0 0 1.2rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.footer-logo {
    width: 110px;
    border-radius: 14px;
    background: #ffffff;
    padding: 6px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.7rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}


/* CONTACT-PAGE extra */

.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 2.5rem 2.7rem;
}


/* ANIMACIONES SCROLL */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* UTILIDADES */

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


/* RESPONSIVE */

@media (max-width: 900px) {
    main {
        padding: 2rem 1rem 3rem;
    }
    .section-split {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.5rem;
    }
    .section-media {
        order: -1;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .site-footer .footer-overlay {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .contact-page {
        grid-template-columns: 1fr;
        padding: 2rem 1.75rem 2.3rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        inset: 100% 0 auto 0;
        background: rgba(1, 10, 22, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 0.5rem 1.5rem 1.2rem;
    }
    .main-nav a {
        width: 100%;
    }
    .main-nav.open {
        max-height: 280px;
    }
    /* animación icono hamburguesa */
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

.site-footer {
    background: #022949;
    /* azul muy oscuro pero solo para el footer */
    color: #ffffff;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.footer-info a {
    color: #27D4E2;
    /* turquesa del logo */
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-company {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.footer-map iframe {
    width: 100%;
    min-height: 220px;
    border: 0;
    border-radius: 14px;
}

.footer-logo img {
    max-width: 100px;
    display: block;
    margin-left: auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
}


/* Responsive footer */

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-logo img {
        margin: 0 auto;
    }
}