:root {
    --primary: #003383;
    --primary-dark: #002768;
    --secondary: #72a13f;
    --secondary-dark: #5f8734;
    --white: #ffffff;
    --background: #f5f7fb;
    --text: #1f2937;
    --text-muted: #667085;
    --border: #e4e7ec;
    --shadow: 0 15px 40px rgba(0, 51, 131, 0.1);
    --radius: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-content {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand picture {
    display: block;
}

.brand img {
    width: 210px;
    height: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    position: relative;
    color: var(--primary);
    font-weight: 700;
    transition: color 0.2s ease;
}

.header-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.2s ease;
}

.header-link:hover {
    color: var(--secondary-dark);
}

.header-link:hover::after {
    width: 100%;
}

/* BANNER */

.banner-section {
    padding: 24px 0 40px;
    background: var(--white);
}

.banner-link {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.banner-link picture {
    display: block;
    width: 100%;
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-link:hover .banner-image {
    transform: scale(1.01);
}

/* ATTENTION */

.attention-section {
    padding: 76px 0;
    background: var(--primary);
    color: var(--white);
}

.attention-content {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: center;
}

.attention-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #b9dc91;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.attention-text h2 {
    max-width: 520px;
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
}

.attention-text p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.7;
}

.attention-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.attention-card {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.attention-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.attention-card-title {
    margin-bottom: 7px;
    font-size: 19px;
    font-weight: 800;
}

.attention-card-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

/* SUCURSALES */

.branches-hero {
    padding: 64px 0 32px;
    background: linear-gradient(90deg, var(--primary) 0%, #205c86 100%);
    color: var(--white);
}

.branches-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #b9dc91;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.branches-hero h1 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
}

.branches-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.7;
}

.branches-section {
    padding: 52px 0 64px;
    background: var(--background);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.branch-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 24px 25px;
    border: 1px solid rgba(0, 51, 131, 0.08);
    border-top: 3px solid var(--secondary);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 51, 131, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 51, 131, 0.12);
}

.branch-card h2 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 21px;
    line-height: 1.2;
}

.branch-address {
    position: relative;
    margin-bottom: 8px;
    padding-left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.branch-address::before {
    content: "↕";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-size: 10px;
    font-weight: 700;
}

.branch-address:hover {
    color: var(--primary);
}

.branch-phones {
    margin-bottom: 17px;
}

.branch-phone {
    position: relative;
    display: inline-block;
    padding-left: 22px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.branch-phone::before {
    content: "☎";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--secondary);
    font-size: 15px;
}

.branch-phone:hover {
    color: var(--secondary-dark);
}

.branch-card h3 {
    margin-bottom: 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.branch-card p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.map-link {
    margin-top: auto;
    padding-top: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.map-link:hover {
    color: var(--secondary-dark);
}

/* FOOTER */

.site-footer {
    background: #f4f6f9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
    padding-top: 55px;
    padding-bottom: 55px;
}

.footer-brand picture {
    display: block;
}

.footer-brand img {
    width: 190px;
    height: auto;
    margin-bottom: 18px;
    object-fit: contain;
}

.footer-brand p {
    max-width: 360px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-info h3 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 16px;
}

.footer-info p,
.footer-info a {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-info a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #dde2e9;
}

.footer-bottom .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-bottom p {
    color: #7b8492;
    font-size: 13px;
}

/* FLOATING WHATSAPP */

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(39, 79, 18, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-3px);
    background: var(--secondary-dark);
}

/* TABLET */

@media (max-width: 960px) {
    .brand img {
        width: 70px;
    }

    .attention-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .attention-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .branches-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand img {
        width: 70px;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-content {
        min-height: 72px;
    }

    .brand img {
        width: 70px;
    }

    .header-nav {
        gap: 12px;
    }

    .header-link {
        font-size: 14px;
    }

    .banner-section {
        padding: 14px 0 28px;
    }

    .banner-link {
        border-radius: 14px;
    }

    .banner-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .attention-section {
        padding: 54px 0;
    }

    .attention-actions {
        grid-template-columns: 1fr;
    }

    .attention-card {
        min-height: 120px;
    }

    .branches-hero {
        padding: 42px 0 28px;
    }

    .branches-hero h1 {
        font-size: 38px;
    }

    .branches-hero p {
        font-size: 16px;
    }

    .branches-section {
        padding: 28px 0 48px;
    }

    .branches-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .branch-card {
        min-height: 270px;
        padding: 22px;
    }

    .branch-card h2 {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .footer-brand img {
        width: 70px;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 12px;
    }

    .brand img {
        width: 70px;
    }

    .header-nav {
        gap: 8px;
    }

    .header-link {
        font-size: 13px;
    }

    .branch-card {
        min-height: 250px;
        padding: 20px;
    }

    .floating-whatsapp {
        min-height: 48px;
        padding: 0 17px;
        font-size: 14px;
    }
}