:root {
    --bg: #f2f6fb;
    --surface: #ffffff;
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --text: #111827;
    --muted: #4b5563;
    --border: #d1d5db;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

header.cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 5%;
    background-color: var(--surface);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-image {
    height: 70px;
    width: auto;
}

.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 30px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background-color: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.boton-enlace {
    color: var(--text);
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.boton-enlace:hover {
    background-color: rgba(59, 130, 246, 0.12);
    color: var(--primary-dark);
}

.boton-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.7rem;
    border-radius: 999px;
    border: none;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.boton-principal:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

main.contenido {
    width: min(1120px, 92%);
    margin: 2.5rem auto 3rem;
    flex: 1;
}

.hero {
    padding: 3rem 2.5rem;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.95));
    box-shadow: var(--shadow);
}

.hero-text {
    max-width: 720px;
    margin-top: 1.25rem;
    line-height: 1.85;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.section {
    margin-top: 3rem;
}

.titulo {
    color: var(--text);
    margin-bottom: 1rem;
    text-align: center;
}

.subtitulo {
    color: var(--primary);
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--surface);
    padding: 1.75rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.card h3 {
    margin-bottom: 1rem;
    color: #111827;
}

.card p {
    color: var(--muted);
    line-height: 1.85;
}

.compañia {
    max-width: 860px;
    margin: 1.5rem auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    text-align: justify;
}

.compañia-image {
    margin: 2rem auto 0;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
}

.form-contacto {
    width: min(720px, 100%);
    margin: 1.75rem auto;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.form-contacto label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: #1f2937;
}

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 1rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background-color: #f8fafc;
    color: #111827;
    font-size: 1rem;
}

.form-contacto textarea {
    min-height: 160px;
    resize: vertical;
}

.boton-enviar {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.boton-enviar:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.contacto-resumen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.contacto-resumen article {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.contacto-resumen h3 {
    margin-bottom: 0.75rem;
}

.contacto-resumen p,
.contacto-resumen a {
    color: var(--muted);
    line-height: 1.8;
    text-decoration: none;
}

.pie-pagina {
    text-align: center;
    padding: 2.2rem 5%;
    background-color: #111827;
    color: #ffffff;
    margin-top: auto;
}

.pie-pagina p {
    opacity: 0.8;
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    header.cabecera {
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 1rem 4%;
    }

    .menu-toggle {
        display: block;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-actions {
        position: absolute;
        top: 100%;
        right: 4%;
        left: 4%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        background-color: var(--surface);
        padding: 1rem 1rem 1.5rem;
        border-radius: 24px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        pointer-events: none;
    }

    .menu-toggle:checked + .hamburger + .nav-actions {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-actions a {
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 18px;
        background: rgba(59, 130, 246, 0.08);
        text-align: center;
    }

    .nav-actions a:hover {
        background: rgba(59, 130, 246, 0.16);
    }

    .hamburger span:first-child {
        transform-origin: top left;
    }

    .hamburger span:last-child {
        transform-origin: bottom left;
    }

    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .titulo,
    .subtitulo,
    .compañia {
        text-align: left;
    }

    main.contenido {
        margin-top: 1.5rem;
    }

    .form-contacto {
        padding: 1.5rem;
    }

    .contacto-resumen {
        grid-template-columns: 1fr;
    }
}

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .titulo,
    .subtitulo,
    .compañia {
        text-align: left;
    }

    main.contenido {
        margin-top: 1.5rem;
    }

    .form-contacto {
        padding: 1.5rem;
    }

    .contacto-resumen {
        grid-template-columns: 1fr;
    }
}
