@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --color-ink: #102a31;
    --color-text: #42616a;
    --color-brand: #087e72;
    --color-brand-dark: #045a52;
    --color-accent: #f0b948;
    --color-surface: #f4f8f6;
    --color-white: #ffffff;
    --color-border: #d6e3df;
    --shadow-header: 0 8px 24px rgba(16, 42, 49, 0.08);
    --shadow-button: 0 10px 20px rgba(8, 126, 114, 0.2);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-surface);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 82px;
    padding: 12px max(24px, calc((100% - var(--container)) / 2));
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-header);
    width: 100%;
    max-width: 100%;
}

.logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.logo img {
    display: block;
    width: 220px;
    max-width: none;
    height: auto;
    object-fit: contain;
}

.logo span {
    color: var(--color-ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.logo strong {
    color: var(--color-brand);
    font-weight: 800;
}

/* Distribución y espaciado de los datos de contacto en el header */
.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    font-size: 0.85rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--color-ink);
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--color-brand-dark);
    background: #e2f2ee;
    outline: none;
}

nav a:active {
    transform: translateY(1px);
}

section {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 88px 0;
}

section h2,
section h3,
h1 {
    margin-top: 0;
    color: var(--color-ink);
    font-family: 'Manrope', sans-serif;
    line-height: 1.15;
}

section h2 {
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

section p {
    max-width: 650px;
    margin: 0 0 18px;
}

#inicio {
    width: 100%;
    min-height: 620px;
    padding: 132px max(24px, calc((100% - var(--container)) / 2));
    color: #e7f4f1;
    background: linear-gradient(115deg, rgba(4, 55, 51, 0.96), rgba(8, 126, 114, 0.84)), url('../img/logo.png') center / cover;
}

#inicio h1 {
    max-width: 750px;
    margin-bottom: 12px;
    color: var(--color-white);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 800;
}

#inicio h2 {
    margin-bottom: 24px;
    color: var(--color-accent);
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0;
}

#inicio p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

button {
    min-height: 48px;
    margin: 0 10px 10px 0;
    padding: 12px 20px;
    color: var(--color-white);
    background: var(--color-brand);
    border: 1px solid var(--color-brand);
    border-radius: 4px;
    box-shadow: var(--shadow-button);
    cursor: pointer;
    font: 700 0.95rem 'DM Sans', sans-serif;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
button:focus-visible {
    background: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
    box-shadow: 0 13px 26px rgba(4, 90, 82, 0.26);
    outline: none;
    transform: translateY(-2px);
}

button + button {
    color: var(--color-white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: none;
}

button + button:hover,
button + button:focus-visible {
    color: var(--color-ink);
    background: var(--color-white);
    border-color: var(--color-white);
}

#nosotros,
#certificaciones,
#galeria {
    width: 100%;
    padding-right: max(24px, calc((100% - var(--container)) / 2));
    padding-left: max(24px, calc((100% - var(--container)) / 2));
    background: var(--color-white);
}

#servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

#servicios h2 {
    grid-column: 1 / -1;
    margin-bottom: 12px;
}

#servicios > div {
    min-height: 185px;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-brand);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(16, 42, 49, 0.05);
}

#servicios h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

#servicios p {
    margin-bottom: 0;
}

#certificaciones ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 36px;
    max-width: 700px;
    margin: 0;
    padding: 0;
    color: var(--color-ink);
    font-weight: 700;
    list-style: none;
}

#certificaciones li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

#contacto {
    width: 100%;
    padding-right: max(24px, calc((100% - var(--container)) / 2));
    padding-left: max(24px, calc((100% - var(--container)) / 2));
    background: var(--color-ink);
    color: #d8eeeb;
}

#contacto h2 {
    color: var(--color-white);
}

footer {
    padding: 22px 24px;
    color: #a9c2c0;
    background: #081c21;
    text-align: center;
}

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

.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

.btn-whatsapp img {
    width: 35px;
    height: 35px;
}

/* Estilos para el botón del brochure centrado */
body .brochure-container-center {
    display: flex;
    justify-content: center;
    margin: 32px auto 0;
    width: 100%;
}

body .brochure-container-center .btn-brochure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 28px;
    border: 0;
    border-radius: 6px;
    background: var(--color-brand);
    color: var(--color-white) !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-button);
    transition: background-color 180ms ease, transform 180ms ease;
}

body .brochure-container-center .btn-brochure:hover,
body .brochure-container-center .btn-brochure:focus-visible {
    background-color: var(--color-brand-dark);
    color: var(--color-white) !important;
    outline: none;
    transform: translateY(-2px);
}

body .partners-card-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding: 8px 0 24px;
    overflow: visible;
    perspective: none;
    scroll-snap-type: none;
}

body .partner-card {
    flex: 1 1 190px;
    max-width: 220px;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-brand);
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 12px 24px rgba(16, 42, 49, 0.12);
    opacity: 1;
    transform: translateY(0);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

body .partner-card:hover {
    box-shadow: 0 20px 32px rgba(16, 42, 49, 0.18);
    transform: translateY(-6px);
}

body .partner-card img {
    width: 100%;
    height: 72px;
    margin: 0;
}

body .partner-card p {
    margin: 20px 0 0;
    font-size: 0.9rem;
}

@media (min-width: 1080px) {
    body .partners-card-carousel {
        flex-wrap: nowrap;
    }

    body .partner-card {
        flex-basis: 0;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header-contact {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav ul {
        justify-content: flex-start;
    }

    #inicio {
        min-height: 520px;
        padding-top: 96px;
        padding-bottom: 96px;
    }

    #servicios {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header {
        position: static;
    }

    .logo img {
        width: 160px;
    }

    nav ul {
        gap: 2px;
    }

    nav a {
        min-height: 34px;
        padding: 6px 8px;
        font-size: 0.78rem;
    }

    section {
        width: min(var(--container), calc(100% - 36px));
        padding-top: 64px;
        padding-bottom: 64px;
    }

    #inicio {
        min-height: 470px;
        padding-right: 24px;
        padding-left: 24px;
    }

    #inicio p {
        font-size: 1rem;
    }

    button {
        width: 100%;
        margin-right: 0;
    }

    #servicios,
    #certificaciones ul {
        grid-template-columns: 1fr;
    }

    #servicios > div {
        min-height: 0;
    }
}

    