/* =====================================
   BLACK STAR INSURANCE SBCS INC.
   Hoja de estilos principal
===================================== */

:root {
    --black: #0b0b0d;
    --dark: #141419;
    --card: #1c1c23;
    --gold: #d6b36a;
    --gold-light: #f0d69b;
    --white: #ffffff;
    --gray: #c0c0c8;
}

/* CONFIGURACIÓN GENERAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* ENCABEZADO */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 13, 0.96);
    border-bottom: 1px solid rgba(214, 179, 106, 0.3);
    backdrop-filter: blur(12px);
}

.header-content {
    max-width: 1200px;
    margin: auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 19px;
    white-space: nowrap;
}

.brand .star {
    font-size: 35px;
    line-height: 1;
}

.brand small {
    display: block;
    color: var(--white);
    font-size: 10px;
    letter-spacing: 5px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--gold);
}

/* BOTÓN DE IDIOMA */

.language-button {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 9px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.language-button:hover {
    background: var(--gold);
    color: var(--black);
}

/* CONTENIDO GENERAL */

main {
    max-width: 1200px;
    margin: auto;
    padding: 30px 28px;
}

section {
    scroll-margin-top: 100px;
}

/* PRESENTACIÓN PRINCIPAL */

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 105px 25px;
    margin-top: 22px;
    border: 1px solid rgba(214, 179, 106, 0.25);
    border-radius: 18px;
background:
    radial-gradient(
        ellipse at top,
        rgba(214, 179, 106, 0.13),
        transparent 65%
    ),
    linear-gradient(135deg, #19191f, #0b0b0d);

}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 22px auto;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--gray);
    font-size: 17px;
}

/* BOTONES PRINCIPALES */

.button {
    display: inline-block;
    padding: 14px 26px;
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* SERVICIOS */

.services {
    padding: 85px 0;
}

.services > .eyebrow,
.services > .section-title {
    text-align: center;
}

.section-title {
    margin: 12px 0 38px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.3;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    padding: 32px;
    background: linear-gradient(145deg, #202027, #151519);
    border: 1px solid #33333b;
    border-radius: 12px;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    background: rgba(214, 179, 106, 0.1);
    border: 1px solid rgba(214, 179, 106, 0.25);
    border-radius: 12px;
    font-size: 28px;
}

.service-card h3 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 23px;
}

.service-card p {
    margin-bottom: 22px;
    color: var(--gray);
    font-size: 15px;
}

.service-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.service-link:hover {
    color: var(--gold-light);
}

/* SECCIÓN SOBRE NOSOTROS */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
    padding: 55px 35px;
    background: #151519;
    border: 1px solid #292930;
    border-radius: 14px;
}

.about h2 {
    margin-top: 15px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.3;
}

.about > p {
    color: var(--gray);
}

/* CONTACTO */

.contact {
    margin-top: 75px;
    padding: 65px 25px;
    text-align: center;
    background:
        radial-gradient(
            ellipse at center,
            rgba(214, 179, 106, 0.1),
            transparent 70%
        ),
        #141419;
    border: 1px solid rgba(214, 179, 106, 0.25);
    border-radius: 14px;
}

.contact h2 {
    margin: 12px 0;
    font-size: clamp(30px, 4vw, 42px);
}

.contact > p:not(.eyebrow):not(.contact-note) {
    max-width: 620px;
    margin: 0 auto 28px;
    color: var(--gray);
}

.contact-note {
    margin-top: 22px;
    color: #9999a3;
    font-size: 12px;
}

/* PIE DE PÁGINA */

footer {
    margin-top: 50px;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #292930;
    color: #9999a3;
    font-size: 13px;
}

footer p {
    margin: 5px 0;
}

/* ACCESIBILIDAD */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

/* DISEÑO PARA TABLETAS Y CELULARES */

@media (max-width: 850px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav {
        order: 3;
        width: 100%;
        gap: 18px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .header-content {
        padding: 16px;
        gap: 16px;
    }

    .brand {
        font-size: 16px;
    }

    .brand .star {
        font-size: 29px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    main {
        padding: 15px;
    }

    .hero {
        padding: 65px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
    }

    .services {
        padding: 60px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    .about {
        padding: 28px 22px;
    }

    .contact {
        margin-top: 45px;
        padding: 45px 20px;
    }
}

/* TARJETAS DE SEGUROS */

.service-card {
    text-align: center;
}

/* Iconos dorados centrados */
.service-card svg {
    display: block;
    margin: 0 auto 20px;
    width: 36px;
    height: 36px;
    stroke: #D6B36A;
}

/* Alineación de tarjetas de seguros */
.service-card {
    text-align: center;
}

.service-card .service-icon {
    margin-left: auto;
    margin-right: auto;
}

.service-card .service-link {
    display: block;
    text-align: left;
    margin-top: 20px;
}

/* INFORMACIÓN DETALLADA DE LOS SEGUROS */

.insurance-detail {
    margin-top: 35px;
    padding: 45px 35px;
    background: #19191f;
    border: 1px solid rgba(214, 179, 106, 0.25);
    border-radius: 18px;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.detail-content h2 {
    color: #D6B36A;
    font-size: 30px;
    margin: 15px 0 20px;
}

.detail-content > p:not(.eyebrow) {
    color: #dddddd;
    line-height: 1.8;
    margin-bottom: 25px;
}

.detail-link {
    display: inline-block;
    color: #D6B36A;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 0;
}

.detail-link:hover {
    text-decoration: underline;
}

/* Desplazamiento suave entre secciones */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Botones de WhatsApp */
.whatsapp-options {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.whatsapp-link {
    text-align: center;
}

/* Tamaño del logotipo */
.brand-logo {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}
