/* ==========================================================================
   Cecilia Castagno Catering — componentes.css
   Solo lo que Bootstrap no trae. Prefijo .cc-
   Nota texturas: son grises sobre blanco y se tiñen con
   background-blend-mode: multiply contra el color de fondo.
   ========================================================================== */

html { scroll-padding-top: calc(var(--cc-header-h) + 1rem); }

.cc-skip {
    position: absolute;
    left: -9999px;
    top: .5rem;
    z-index: 2000;
    padding: .75rem 1.25rem;
    border-radius: var(--bs-border-radius);
    background: var(--cc-marron-oscuro);
    color: #fff;
}
.cc-skip:focus { left: .5rem; }

/* Volanta: reemplaza a "auster" con Plus Jakarta Sans espaciada */
.cc-volanta {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--cc-terracota-texto);
}

.cc-display {
    font-family: var(--cc-ff-display);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
}

/* ==========================================================================
   Header
   ========================================================================== */

.cc-header {
    background-color: var(--cc-terracota);
    background-image: url("../img/textura-header.jpg");
    background-size: 100% 173px;
    background-position: top center;
    background-repeat: no-repeat;
    transition: box-shadow .25s ease;
}

.cc-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(77, 38, 29, .55); }

.cc-header .navbar { min-height: var(--cc-header-h); }

.cc-header__logo {
    display: block;
    height: 68px;
    width: auto;
}

.cc-header .nav-link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: .5em;
    text-decoration-thickness: 1px;
}

@media (max-width: 991.98px) {
    .cc-header .navbar-collapse {
        padding-bottom: 1.25rem;
    }
    .cc-header .dropdown-menu {
        --bs-dropdown-bg: rgba(255, 255, 255, .08);
        --bs-dropdown-link-color: #fff;
        --bs-dropdown-link-hover-color: #fff;
        --bs-dropdown-link-hover-bg: rgba(255, 255, 255, .12);
        box-shadow: none;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.cc-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: min(88svh, 860px);
    color: #fff;
    overflow: hidden;
}

.cc-hero__foto {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.cc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(40, 18, 12, .82) 0%, rgba(40, 18, 12, .55) 45%, rgba(40, 18, 12, .05) 80%),
        linear-gradient(0deg, rgba(40, 18, 12, .6) 0%, rgba(40, 18, 12, 0) 45%);
}

.cc-hero__contenido {
    max-width: 40rem;
    padding-block: clamp(3rem, 10vh, 6rem);
}

.cc-hero .cc-volanta { color: var(--cc-salmon); }

.cc-hero__titulo {
    margin-bottom: 1.5rem;
    font-size: clamp(3.5rem, 9vw, 7rem);
    color: var(--cc-crema);
}

.cc-hero .lead { color: rgba(255, 255, 255, .92); }

@media (max-width: 767.98px) {
    .cc-hero::before {
        background: linear-gradient(0deg, rgba(40, 18, 12, .88) 0%, rgba(40, 18, 12, .55) 55%, rgba(40, 18, 12, .15) 100%);
    }
}

/* ==========================================================================
   Manifiesto (bloque terracota con hojas)
   ========================================================================== */

.cc-manifiesto {
    background-color: var(--cc-terracota-texto);
    background-image: url("../img/textura-hoja-roja.jpg");
    background-size: auto;
    background-position: top left;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    color: #fff;
}

.cc-manifiesto__frase {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: #fff;
}

.cc-manifiesto__frase em {
    font-family: var(--cc-ff-display);
    font-style: normal;
    font-size: 1.3em;
    color: var(--cc-crema);
}

.cc-manifiesto__iconos { width: 240px; max-width: 100%; height: auto; }

/* ==========================================================================
   Selector de servicios (cards)
   ========================================================================== */

.cc-servicio-card {
    position: relative;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: var(--cc-radio-lg);
    background: var(--cc-crema-claro);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cc-servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cc-sombra);
}

.cc-servicio-card__ilustracion {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.cc-servicio-card__titulo {
    margin-bottom: .5rem;
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--cc-marron-oscuro);
}

.cc-servicio-card__texto {
    margin-bottom: 1.25rem;
    font-size: .9375rem;
}

/* Toda la card es clickeable sin anidar links */
.cc-servicio-card .stretched-link {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--cc-terracota-texto);
    text-decoration: none;
}

/* ==========================================================================
   Sección de servicio (texto + mosaico)
   ========================================================================== */

.cc-servicio {
    background-color: var(--cc-crema);
    background-image: url("../img/textura-papel.jpg");
    background-size: cover;
    background-position: center;
}

.cc-servicio--corporativo   { background-image: url("../img/textura-papel-corporativo.jpg"), url("../img/textura-papel.jpg"); }
.cc-servicio--institucional { background-image: url("../img/textura-papel-institucional.jpg"), url("../img/textura-papel.jpg"); }
.cc-servicio--sociales      { background-image: url("../img/textura-papel-sociales.jpg"), url("../img/textura-papel.jpg"); }
.cc-servicio--finger        { background-image: url("../img/textura-papel-finger.jpg"), url("../img/textura-papel.jpg"); }

.cc-servicio--corporativo,
.cc-servicio--institucional,
.cc-servicio--sociales,
.cc-servicio--finger {
    background-size: auto, cover;
    background-position: top left, center;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: multiply, normal;
}

.cc-servicio__ilustracion {
    width: 96px;
    height: auto;
    margin-bottom: 1.5rem;
}

.cc-servicio__cierre {
    margin-block: 1.75rem 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--cc-salmon);
    font-weight: 600;
    color: var(--cc-marron-oscuro);
}

.cc-servicio__lista {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.cc-servicio__lista li {
    padding: .375rem .875rem;
    border-radius: var(--bs-border-radius-pill);
    background: rgba(255, 255, 255, .55);
    font-size: .875rem;
    font-weight: 500;
    color: var(--cc-marron-oscuro);
}

/* Mosaico de fotos: 1 grande + 2 chicas (o 2 + 2 con 4 fotos) */
.cc-mosaico {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    aspect-ratio: 5 / 4;
}

.cc-mosaico__item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--cc-radio);
    background: var(--cc-beige);
}

.cc-mosaico__item:first-child { grid-row: span 2; }

.cc-mosaico--4 { grid-template-columns: 1fr 1fr; }
.cc-mosaico--4 .cc-mosaico__item:first-child { grid-row: auto; }

.cc-mosaico__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.cc-mosaico__item:hover img { transform: scale(1.04); }

@media (max-width: 575.98px) {
    .cc-mosaico { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Cómo trabajamos
   ========================================================================== */

.cc-proceso {
    background-color: var(--cc-marron);
    background-image: url("../img/textura-contacto.jpg");
    background-size: auto;
    background-position: top left;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    color: var(--cc-crema);
}

.cc-proceso h2,
.cc-proceso .cc-volanta { color: var(--cc-crema); }
.cc-proceso .cc-volanta { color: var(--cc-salmon); }

.cc-paso {
    height: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(233, 228, 199, .35);
}

.cc-paso__numero {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--cc-ff-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--cc-salmon);
}

.cc-paso__titulo {
    margin-bottom: .5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
}

.cc-paso p {
    margin: 0;
    font-size: .9375rem;
    color: rgba(233, 228, 199, .92);
}

/* ==========================================================================
   Testimonios
   ========================================================================== */

.cc-testimonio {
    height: 100%;
    margin: 0;
    padding: 2rem;
    border-radius: var(--cc-radio-lg);
    background: var(--cc-crema-claro);
}

.cc-testimonio blockquote {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--cc-marron-oscuro);
}

.cc-testimonio blockquote::before {
    content: "“";
    display: block;
    height: 2.25rem;
    font-family: var(--cc-ff-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--cc-salmon);
}

.cc-testimonio figcaption { font-size: .875rem; }
.cc-testimonio figcaption strong { display: block; color: var(--cc-marron-oscuro); }

/* Marca visible de contenido de ejemplo (sale al cargar datos reales) */
.cc-ejemplo {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .25rem .625rem;
    border: 1px dashed var(--cc-beige);
    border-radius: var(--bs-border-radius-pill);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cc-marron);
}

/* ==========================================================================
   Recetas / novedades (cards)
   ========================================================================== */

.cc-post-card { height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.cc-post-card:hover { transform: translateY(-4px); box-shadow: var(--cc-sombra); }

.cc-post-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cc-post-card .card-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
}

.cc-post-card .stretched-link { text-decoration: none; color: inherit; }

.cc-etiqueta {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cc-terracota-texto);
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.cc-contacto {
    background-color: var(--cc-terracota);
    background-image: url("../img/textura-hoja-roja.jpg");
    background-size: auto;
    background-position: bottom right;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    color: #fff;
}

.cc-contacto h2 { color: #fff; }
.cc-contacto .cc-volanta { color: var(--cc-crema); }

.cc-contacto__panel {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--cc-radio-lg);
    background: var(--cc-crema);
    color: var(--cc-marron-texto);
    box-shadow: 0 30px 60px -30px rgba(40, 18, 12, .6);
}

.cc-contacto__dato {
    display: flex;
    align-items: center;
    gap: .875rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.cc-contacto__dato i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 1.125rem;
}

.cc-contacto__dato:hover { color: var(--cc-crema); }

/* ==========================================================================
   Footer
   ========================================================================== */

.cc-footer {
    background-color: var(--cc-marron-oscuro);
    background-image: url("../img/textura-footer.jpg");
    background-size: cover;
    background-blend-mode: multiply;
    color: rgba(233, 228, 199, .88);
    font-size: .9375rem;
}

.cc-footer__logo { height: 110px; width: auto; }

.cc-footer__titulo {
    margin-bottom: 1rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cc-salmon);
}

.cc-footer a { color: var(--cc-crema); text-decoration: none; }
.cc-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }

.cc-footer__redes a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(233, 228, 199, .4);
    border-radius: 50%;
    font-size: 1.125rem;
}

.cc-footer__redes a:hover { background: var(--cc-crema); color: var(--cc-marron-oscuro); text-decoration: none; }

.cc-footer__legal {
    border-top: 1px solid rgba(233, 228, 199, .18);
    font-size: .8125rem;
    color: rgba(233, 228, 199, .7);
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */

.cc-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.875rem;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
    transition: transform .2s ease;
}

.cc-whatsapp:hover { color: #fff; transform: scale(1.07); }

/* ==========================================================================
   Aparición al hacer scroll (progresiva: sin JS se ve todo)
   ========================================================================== */

.js .cc-revelar {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .cc-revelar.is-visible {
    opacity: 1;
    transform: none;
}
