/*
Theme Name: C3
Theme URI: https://www.grupoc3.com/
Author: Grupo C3
Description: Tema personalizado para Grupo C3.
Version: 0.2.0
Text Domain: c3
*/

/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --c3-blue: #1e3c80;
    --c3-blue-dark: #142d64;
    --c3-gray: #88868b;
    --c3-dark: #262626;
    --c3-light: #f5f6f8;
    --c3-border: #e5e7eb;
    --c3-white: #ffffff;

    --c3-radius-sm: 10px;
    --c3-radius-md: 18px;
    --c3-radius-lg: 28px;

    --c3-shadow: 0 12px 40px rgba(25, 45, 85, 0.08);
}


/* =========================================================
   2. GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--c3-dark);
    background: var(--c3-white);
    -webkit-font-smoothing: antialiased;
}

a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   3. HEADER
   ========================================================= */

.c3-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--c3-white);
    box-shadow: 0 4px 18px rgba(20, 35, 70, 0.10);
}

.c3-header .wp-block-site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.c3-header .wp-block-site-logo img {
    display: block;
    width: 150px;
    height: auto;
}

.c3-header__inner {
    min-height: 78px;
    padding: 0 24px;
}

.c3-header__nav .wp-block-navigation__container {
    column-gap: 50px !important;
}

.c3-header__nav a {
    color: var(--c3-blue) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.c3-header__nav a:hover {
    color: var(--c3-blue-dark) !important;
    opacity: 0.78;
}

.c3-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.c3-header__actions .wp-block-button__link {
    min-height: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.c3-header__loyaltix .wp-block-button__link,
.c3-header__shop .wp-block-button__link {
    background: transparent;
    color: var(--c3-blue);
    border: 1px solid var(--c3-blue);
}

.c3-header__loyaltix .wp-block-button__link:hover,
.c3-header__shop .wp-block-button__link:hover {
    background: rgba(30, 60, 128, 0.08);
    color: var(--c3-blue-dark);
    border-color: var(--c3-blue-dark);
}

.c3-header__advisor .wp-block-button__link {
    background: var(--c3-blue);
    color: var(--c3-white);
    border: 1px solid var(--c3-blue);
}

.c3-header__advisor .wp-block-button__link:hover {
    background: var(--c3-blue-dark);
    border-color: var(--c3-blue-dark);
    color: var(--c3-white);
}

.c3-header .wp-block-navigation__responsive-container-open,
.c3-header .wp-block-navigation__responsive-container-close {
    color: var(--c3-blue);
}

.c3-header .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--c3-white);
    color: var(--c3-blue);
}

.c3-header .wp-block-navigation__responsive-container.is-menu-open a {
    color: var(--c3-blue) !important;
}


/* =========================================================
   3.1 BARRA DE ATENCIÓN
   ========================================================= */

.c3-attention-bar {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 18px auto 0;
    overflow: hidden;
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius-md);
    box-shadow: 0 10px 30px rgba(25, 45, 85, 0.06);
}

.c3-attention-bar__content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 20px 24px;
}

.c3-attention-bar__text {
    flex: 1 1 auto;
    min-width: 0;
}

.c3-attention-bar__title {
    margin: 0 0 4px;
    color: var(--c3-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c3-attention-bar__description {
    margin: 0;
    color: var(--c3-dark);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.c3-attention-bar__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-left: auto;
}

.c3-attention-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px !important;
    min-height: 0;
    margin: 0;
    padding: 0 18px !important;
    box-sizing: border-box;
    border-radius: var(--c3-radius-sm);
    font-size: 14px;
    font-weight: 700;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none;
}

.c3-attention-bar__button--primary {
    background: var(--c3-blue);
    color: var(--c3-white);
    border: 1px solid var(--c3-blue);
}

.c3-attention-bar__button--primary:hover {
    background: var(--c3-blue-dark);
    color: var(--c3-white);
}

.c3-attention-bar__button--secondary {
    background: var(--c3-white);
    color: var(--c3-blue);
    border: 1px solid rgba(30, 60, 128, 0.22);
}

.c3-attention-bar__button--secondary:hover {
    border-color: var(--c3-blue);
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.c3-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px !important;
    min-height: 0;
    margin: 0;
    padding: 0 22px !important;
    box-sizing: border-box;
    border-radius: var(--c3-radius-sm);
    font-weight: 600;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none;
}

.c3-button--primary .wp-block-button__link {
    background: var(--c3-blue);
    color: var(--c3-white);
}

.c3-button--primary .wp-block-button__link:hover {
    background: var(--c3-blue-dark);
    transform: translateY(-1px);
}

.c3-button--secondary .wp-block-button__link {
    background: transparent;
    color: var(--c3-blue);
    border: 1px solid var(--c3-blue);
}

.c3-button--secondary .wp-block-button__link:hover {
    background: var(--c3-blue);
    color: var(--c3-white);
}


/* =========================================================
   5. HERO
   ========================================================= */

.c3-hero {
    padding: 42px 24px 80px;
}

.c3-hero__header {
    margin: 0 0 48px;
    text-align: center;
}

.c3-eyebrow {
    margin: 0 0 18px;
    color: var(--c3-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-align: center;
}

.c3-hero__title {
    max-width: 1100px;
    margin: 0 auto;
    color: var(--c3-blue);
    font-size: clamp(40px, 4.3vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-align: center;
    text-wrap: balance;
}

.c3-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.c3-hero__buttons .wp-block-button {
    margin: 0;
}


/* =========================================================
   6. DIFERENCIALES / VALUES
   ========================================================= */

.c3-values {
    position: relative;
    z-index: 5;
    margin-top: -30px;
    padding: 0 24px;
}

.c3-values__columns {
    padding: 28px 34px;
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius-md);
    box-shadow: var(--c3-shadow);
}

.c3-values h4 {
    margin: 0 0 6px;
    color: var(--c3-blue);
    font-size: 15px;
}

.c3-values p {
    margin: 0;
    color: var(--c3-gray);
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   7. SECCIONES GENERALES
   ========================================================= */

.c3-section {
    padding: 90px 24px;
}

.c3-section__eyebrow {
    margin: 0 0 10px;
    color: var(--c3-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.c3-section__title {
    margin: 0 0 14px;
    color: var(--c3-dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.c3-section__intro {
    max-width: 650px;
    margin: 0 0 42px;
    color: var(--c3-gray);
    font-size: 17px;
    line-height: 1.6;
}


/* =========================================================
   8. ESPECIALIDADES
   ========================================================= */

.c3-specialties {
    background: var(--c3-light);

    text-align: center;
}

.c3-specialties .c3-section__intro {
    margin-left: auto;
    margin-right: auto;
}

.c3-specialties .c3-section__title,
.c3-brands .c3-section__title {
    color: var(--c3-blue);
}

.c3-carousel {
    position: relative;
    padding: 0 28px;
}

.c3-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.c3-carousel__track::-webkit-scrollbar {
    display: none;
}

.c3-specialty-card {
    /*Ver si se quiere el texto centrado o para la izquierda*/
    text-align: left;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: flex-start !important;
    min-height: 0;
    height: auto;
    padding: 12px 12px 20px !important;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius-md);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
}

.c3-specialty-card__image {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 0 18px !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8edf7;
    border-radius: 13px;
    color: var(--c3-gray);
    font-size: 12px;
    font-weight: 700;
}

.c3-specialty-card__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover;
}

.c3-specialty-card h3 {
    margin: 0 6px 10px;
    color: var(--c3-blue);
    font-size: 20px;
    line-height: 1.25;
}

.c3-specialty-card p {
    min-height: 0;
    margin: 0 6px;
    color: var(--c3-gray);
    font-size: 14px;
    line-height: 1.5;
}

.c3-specialty-card__link,
.c3-specialty-card > a {
    margin: 16px 6px 0;
    color: var(--c3-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.c3-specialty-card__link:hover,
.c3-specialty-card > a:hover {
    color: var(--c3-blue-dark);
}

.c3-carousel__arrow {
    position: absolute;

    /*
     * La flecha se centra verticalmente respecto de la imagen
     * de la card (260 px de ancho, padding interno y relación 3:2),
     * no respecto de la altura completa de la tarjeta.
     */
    top: 101px;

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--c3-blue);
    color: var(--c3-white);

    box-shadow: 0 8px 20px rgba(30, 60, 128, 0.22);

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);
}

.c3-carousel__arrow:hover {
    background: var(--c3-blue-dark);
}

.c3-carousel__arrow svg {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.c3-carousel__arrow:disabled {
    opacity: 0.45;
    cursor: default;
}

.c3-carousel__arrow:focus-visible,
.c3-carousel__track:focus-visible {
    outline: 2px solid var(--c3-blue);
    outline-offset: 3px;
}

.c3-carousel__arrow--prev {
    left: 5px;
}

.c3-carousel__arrow--next {
    right: 5px;
}


/* =========================================================
   9. MARCAS
   ========================================================= */

.c3-brands {
    background: var(--c3-white);
    text-align: center;
}

.c3-brand-carousel {
    overflow: hidden;
    margin-top: 35px;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
}

.c3-brand-carousel__track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 44px;
    animation: c3Brands 24s linear infinite;
}

.c3-brand-carousel:hover .c3-brand-carousel__track,
.c3-brand-carousel:focus-within .c3-brand-carousel__track {
    animation-play-state: paused;
}

.c3-brand {
    flex: 0 0 340px;
    width: 340px;
    min-width: 340px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c3-gray);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.c3-brand a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.c3-brand__logo {
    display: block;
    width: 325px !important;
    height: 125px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain;
}

@keyframes c3Brands {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================================
   10. ORTOPEDIA - PLACEHOLDER TEMPORAL
   ========================================================= */

.c3-orthopedics-placeholder {
    min-height: 380px;
    background: var(--c3-blue);
    color: var(--c3-white);
}

.c3-orthopedics-placeholder h2 {
    color: var(--c3-white);
    font-size: 42px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.c3-footer {
    padding: 70px 24px 28px;

    background: var(--c3-blue);

    color: rgba(255, 255, 255, 0.82);
}


/* ---------------------------------------------------------
   ESTRUCTURA PRINCIPAL
   --------------------------------------------------------- */

.c3-footer__columns {
    display: grid !important;

    grid-template-columns:
        1.35fr
        0.8fr
        1.15fr
        1.05fr;

    align-items: start;

    column-gap: 72px;
}


.c3-footer__column {
    min-width: 0;
}


.c3-footer h4 {
    margin: 0 0 20px;

    color: var(--c3-white);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}


.c3-footer a {
    color: rgba(255, 255, 255, 0.84);

    text-decoration: none;
}


.c3-footer a:hover {
    color: var(--c3-white);
}

.c3-footer__logo-image {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   GRUPO C3
   --------------------------------------------------------- */

.c3-footer__institutional {
    max-width: 330px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
    line-height: 1.7;
}


.c3-footer__social {
    display: flex;

    gap: 20px;

    margin-top: 28px;

    font-size: 14px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   SOLUCIONES
   --------------------------------------------------------- */

.c3-footer__links {
    display: flex;

    flex-direction: column;

    gap: 8px;

    font-size: 14px;
}


.c3-footer__links a {
    display: flex;

    align-items: center;

    min-height: 32px;
}


/* ---------------------------------------------------------
   CONTACTOS GENERALES
   --------------------------------------------------------- */

.c3-footer-contacts {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;
}


.c3-footer-contact {
    display: flex !important;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    width: 100%;

    min-height: 34px;
}


.c3-footer-contact__name {
    flex: 1 1 auto;

    min-width: 0;

    color: rgba(255, 255, 255, 0.86);

    font-size: 14px;
    line-height: 1.4;
}


.c3-footer-contact__whatsapp {
    flex: 0 0 auto !important;

    width: auto !important;
    min-width: 82px !important;
    max-width: none !important;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    padding: 6px 11px;

    border:
        1px solid rgba(255, 255, 255, 0.30);

    border-radius: 7px;

    color: var(--c3-white) !important;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
}


.c3-footer-contact__whatsapp:hover {
    background: var(--c3-white);

    color: var(--c3-blue) !important;
}

/* ---------------------------------------------------------
   C3 ORTOPEDIA
   --------------------------------------------------------- */

.c3-footer__orthopedics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c3-footer__orthopedics-address,
.c3-footer__orthopedics-social,
.c3-footer__orthopedics-contact {
    margin: 0;
    padding: 0;
}

.c3-footer__orthopedics-address,
.c3-footer__orthopedics-social {
    font-size: 14px;
    line-height: 1.4;
}

.c3-footer__address,
.c3-footer__address-link {
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 14px;
    line-height: 1.4;
}

.c3-footer__address-link:hover {
    color: var(--c3-white) !important;
    text-decoration: underline;
}

.c3-footer__orthopedics-contact {
    margin-top: 6px;
}

.c3-footer__orthopedics-contact .c3-footer-contact {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    width: 100%;
    min-height: 34px;
}

.c3-footer__orthopedics-contact
.c3-footer-contact__name {
    flex: 1 1 auto;
}

.c3-footer__orthopedics-contact
.c3-footer-contact__whatsapp {
    flex: 0 0 auto !important;

    width: auto !important;
    min-width: 82px !important;
}


/* ---------------------------------------------------------
   FRANJA INFERIOR
   --------------------------------------------------------- */

.c3-footer__bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 55px;
    padding-top: 24px;

    border-top:
        1px solid rgba(255, 255, 255, 0.18);

    color: rgba(255, 255, 255, 0.58);

    font-size: 12px;
}


.c3-footer__legal {
    display: flex;

    gap: 22px;
}


.c3-footer__legal a {
    color: rgba(255, 255, 255, 0.58);

    font-size: 12px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .c3-footer__columns {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 48px 60px;
    }

}


@media (max-width: 600px) {

    .c3-footer {
        padding:
            50px 18px 24px;
    }


    .c3-footer__columns {
        grid-template-columns: 1fr;

        gap: 42px;
    }


    .c3-footer__bottom {
        flex-direction: column;

        align-items: flex-start;
    }


    .c3-footer__legal {
        flex-direction: column;

        gap: 8px;
    }

}


/* RESPONSIVE FOOTER */

@media (max-width: 900px) {

    .c3-footer__columns {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 45px;
    }

}


@media (max-width: 600px) {

    .c3-footer {
        padding:
            50px 18px 24px;
    }


    .c3-footer__columns {
        grid-template-columns: 1fr;
    }


    .c3-footer__bottom {
        flex-direction: column;

        align-items: flex-start;
    }


    .c3-footer__legal {
        flex-direction: column;

        gap: 8px;
    }

}


/* =========================================================
   12. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .c3-header .c3-header__actions {
        display: none;
    }

    .c3-hero {
        padding-top: 36px;
    }

    .c3-hero__header {
        margin-bottom: 38px;
    }
}

@media (max-width: 700px) {
    .c3-header__inner {
        min-height: 66px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .c3-attention-bar {
        width: calc(100% - 36px);
        margin-top: 12px;
        margin-bottom: 0;
    }

    .c3-attention-bar__content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px;
    }

    .c3-attention-bar__description {
        font-size: 16px;
    }

    .c3-attention-bar__actions {
        flex-direction: column;
        margin-left: 0;
    }

    .c3-attention-bar__button {
        width: 100%;
        box-sizing: border-box;
    }

    .c3-hero {
        padding: 30px 18px 50px;
    }

    .c3-hero__title {
        font-size: 42px;
    }

    .c3-hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .c3-hero__buttons .wp-block-button,
    .c3-hero__buttons .wp-block-button__link {
        width: 100%;
    }

    .c3-hero__buttons .wp-block-button__link {
        box-sizing: border-box;
        text-align: center;
    }

    .c3-values {
        margin-top: 0;
        padding: 0 18px;
    }

    .c3-values__columns {
        padding: 24px;
    }

    .c3-section {
        padding: 60px 18px;
    }

    .c3-specialty-card {
        flex-basis: 82vw;
    }

    .c3-carousel__arrow {
        display: none;
    }

    .c3-brand-carousel__track {
        gap: 28px;
    }

    .c3-brand {
        flex-basis: 250px;
        width: 250px;
        min-width: 250px;
        height: 125px;
    }

    .c3-brand__logo {
        width: 235px !important;
        height: 95px !important;
    }

    .c3-footer {
        padding: 50px 18px 24px;
    }
}

/* =========================================
   CONTACTOS / ASESORAMIENTO
   ========================================= */

.c3-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;

    margin-top: 36px;
}

.c3-contact-card {
    background: #ffffff;
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    padding: 28px 24px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    min-height: 280px;
}

.c3-contact-card__icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(30, 60, 128, 0.08);

    font-size: 24px;
    line-height: 1;

    margin-bottom: 18px;
}

.c3-contact-card__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--c3-heading);
}

.c3-contact-card__text {
    margin: 0 0 18px;
    color: var(--c3-muted);
    line-height: 1.6;
}

.c3-contact-card__phone {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 600;
    color: var(--c3-blue);
    word-break: break-word;
}

.c3-contact-card__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: auto;
    width: 100%;
}

.c3-contact-card__button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    padding: 12px 18px;

    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.c3-contact-card__button--whatsapp {
    background: #25D366;
    color: #ffffff;
}

.c3-contact-card__button--whatsapp:hover {
    background: #1fb95a;
    color: #ffffff;
}

.c3-contact-card__button--call {
    background: var(--c3-blue);
    color: #ffffff;
}

.c3-contact-card__button--call:hover {
    background: var(--c3-blue-dark);
    color: #ffffff;
}

@media (max-width: 1024px) {
    .c3-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .c3-contact-grid {
        grid-template-columns: 1fr;
    }

    .c3-contact-card {
        min-height: auto;
    }

    .c3-contact-card__actions {
        flex-direction: column;
    }

    .c3-contact-card__button {
        width: 100%;
    }
}


/* =========================================================
   PÁGINAS DINÁMICAS - ESPECIALIDADES Y MARCAS
   ========================================================= */

/* ESPECIALIDADES */

.c3-specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.c3-specialties-grid .c3-specialty-card {
    width: auto;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.c3-specialty-card--grid {
    flex: none;
}

.c3-specialty-card--grid .c3-specialty-card__link {
    margin-top: auto;
    padding-top: 18px;
}


/* MARCAS */

.c3-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.c3-brand--grid {
    width: 100%;
    min-width: 0;
    height: 170px;
    box-sizing: border-box;
    padding: 22px;
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius-md);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
}

.c3-brand--grid a {
    width: 100%;
    height: 100%;
}

.c3-brand--grid .c3-brand__logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 270px !important;
    max-height: 115px !important;
    object-fit: contain;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .c3-specialties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c3-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .c3-specialties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .c3-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .c3-brand--grid {
        height: 120px;
        padding: 15px;
    }
}

@media (max-width: 420px) {

    .c3-brands-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HERO DINÁMICO
   ========================================================= */

.c3-hero-slider {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.c3-hero-slider__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 32px);
    align-items: start;
    width: 100%;
}

.c3-hero-slider--single .c3-hero-slider__items {
    grid-template-columns: 1fr;
}

.c3-hero-slider__item {
    display: none;
    min-width: 0;
}

.c3-hero-slider__item.is-visible {
    display: block;
}

.c3-hero-slider__indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 0;
}

.c3-hero-slider__indicator {
    appearance: none;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #88868b;
    cursor: pointer;
    opacity: 0.28;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.c3-hero-slider__indicator:hover,
.c3-hero-slider__indicator.is-active {
    opacity: 0.58;
    transform: scale(1.18);
}

.c3-hero-slider__indicator:focus-visible {
    outline: 2px solid rgba(136, 134, 139, 0.5);
    outline-offset: 4px;
}

.c3-hero-media {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--c3-radius-lg);
    background: linear-gradient(145deg, #eef2fa, #dfe7f6);
    box-shadow: var(--c3-shadow);
}

.c3-hero-media__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center;
}

.c3-hero-slide__content {
    margin-top: 18px;
    color: var(--c3-gray);
    font-size: 18px;
    line-height: 1.6;
}

.c3-hero-slide__content > :first-child {
    margin-top: 0;
}

.c3-hero-slide__content > :last-child {
    margin-bottom: 0;
}

.c3-hero-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c3-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {

    .c3-hero-slider__item {
        width: 100%;
    }

    .c3-hero-slider__items {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}

/* =========================================================
   ORTOPEDIA C3 - HOME
   ========================================================= */

.c3-orthopedics-home {
    padding: 90px 24px;
    background: var(--c3-blue);
    color: var(--c3-white);
}

.c3-orthopedics-home__header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.c3-orthopedics-home .c3-section__eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.c3-orthopedics-home__title {
    margin: 0 0 16px;
    color: var(--c3-white);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
}

.c3-orthopedics-home__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 17px;
    line-height: 1.65;
}

.c3-orthopedics-home__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    max-width: 1180px;
    margin: 0 auto;
}

.c3-orthopedics-home__video,
.c3-orthopedics-home__map {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: var(--c3-radius-md);

    background: rgba(255, 255, 255, 0.08);
}

.c3-orthopedics-home__video iframe,
.c3-orthopedics-home__video video,
.c3-orthopedics-home__map iframe {
    position: absolute;

    inset: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0;
}

.c3-orthopedics-home__placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.10em;
}

.c3-orthopedics-home__footer {
    grid-column: 1 / -1;
    align-self: center;
    width: 100%;
    max-width: 1180px;

    margin: 32px auto 0;

    display: flex;

    align-items: center;
    justify-content: center;
}

.c3-orthopedics-home__whatsapp {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 220px;
    height: 44px;
    min-height: 0;
    margin: 0 auto;

    padding: 0 20px;
    box-sizing: border-box;

    border-radius: var(--c3-radius-sm);

    background: var(--c3-white);

    color: var(--c3-blue) !important;

    font-weight: 700;
    line-height: 1;

    text-align: center;

    text-decoration: none;
}
.c3-orthopedics-home__whatsapp:hover {
    background: rgba(255, 255, 255, 0.90);
    transform: translateY(-1px);
}

@media (max-width: 800px) {

    .c3-orthopedics-home {
        padding: 65px 18px;
    }

    .c3-orthopedics-home__media {
        grid-template-columns: 1fr;
    }

    .c3-orthopedics-home__footer {
        align-items: center;
        flex-direction: column;
    }
}
