/*Global fonts*/
/* Cantarell for paragraphs and subtitles */
body {
    font-family: 'Cantarell', sans-serif;
    margin: 0;
    padding: 0;
}

/* Fjalla One for all the titles*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fjalla One', sans-serif;
    font-style: italic;
}

/* Order */
*,
*::before,
*::after {
    box-sizing: border-box;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* SECTION 1: HEADER / NAVBAR*/

#header {
    background-color: #2A0C11;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}


/* LOGO */
#header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

#header .logo-icon {
    width: 70px;
    height: 65px;
    background-color: #452A2F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#header .logo-icon img {
    height: 107px;
    display: block;
}

#header .logo-text {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #fff;
}


/* NAVEGATION */
#header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Inicio-Nosotros-Servicios */
#header nav ul li a {
    font-family: 'Cantarell', sans-serif;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

#header nav ul li a:hover {
    color: #CF332D;
}



/* SECTION 2: HERO */

#hero {
    background-image: url("../assets/images/heroIMG.jpg");
    background-size: cover;
    background-position: center unset;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* OVERLAY */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(42, 12, 17, 0.80);
    z-index: -1;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
}

#hero h1 {
    color: #ffffff;
    font-size: 48px;
    line-height: 1.2;
    max-width: 820px;
    margin: 0 auto 28px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Cantarell', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 18px;
    color: #ffffff;
    font-family: 'Cantarell', sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #CF332D;
}

/* "Contactanos" Button */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #cf332d;
    color: #ffffff;
    font-family: 'Cantarell', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    padding: 14px 26px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary::after {
    content: "\2192";
}

.btn-primary:hover {
    background-color: #000000;
}

/* RESPONSIVE NAV + HERO */

/* Tablet */
@media (max-width: 992px) {
    #header {
        padding: 8px 24px;
    }

    #header nav ul {
        gap: 20px;
    }

    #header nav ul li a {
        font-size: 0.75rem;
    }

    #hero {
        padding: 80px 24px;
    }

    #hero h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #header {
        padding: 8px 16px;
    }

    #header .logo-icon {
        width: 46px;
        height: 42px;
    }

    #header .logo-icon img {
        height: 62px;
    }

    #header .logo-text {
        font-size: 0.9rem;
    }

    #header nav ul {
        gap: 14px;
    }

    #header nav ul li a {
        font-size: 0.72rem;
    }

    #hero {
        padding: 70px 20px;
    }

    #hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero-tags {
        gap: 8px;
        margin-bottom: 32px;
    }

    .tag {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* SECTION 3: "Sobre nosotros" */
#nosotros {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    padding: 80px 40px;
    background-color: #F5F1EE;
    align-items: start;
}

/* Left column*/
.nosotros-left h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 3.5rem;
    color: #2A0C11;
    margin: 0 0 16px 20px;
    text-align: left;
}

.nosotros-left>p {
    font-family: 'Cantarell', sans-serif;
    color: #555;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: left;
    margin: 20px 0px 75px 30px;
    max-width: 5600px;
}

.nosotros-left img {
    width: 98%;
    border-radius: 16px;
    margin: 0px 0px 0px 20px;
    display: block;
}

/* Right column */
.nosotros-right {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-top: 60px;
}

.nosotros-item h3 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.8rem;
    color: #2A0C11;
    margin: 0 0 25px;
    text-align: left;
}

.nosotros-item p {
    font-family: 'Cantarell', sans-serif;
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    margin: 0;
    padding: 16px;
    border-left: 3px solid #CF332D;
    position: relative;
}

/* Esquina inferior izquierda */
.nosotros-item p::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 15%;
    height: 3px;
    background-color: #CF332D;
}

/* Esquina superior derecha: span real, no pseudo-elemento */
.nosotros-item p .corner-tr {
    position: absolute;
    right: 0;
    top: 0;
    width: 15%;
    height: 100px;
    border-top: 3.1px solid #CF332D;
    border-right: 3.1px solid #CF332D;
    pointer-events: none;
}

/* RESPONSIVE */
/* Tablet */
@media (max-width: 992px) {
    #nosotros {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 30px;
    }

    .nosotros-left h2 {
        font-size: 2.8rem;
        margin: 0 0 16px 10px;
    }

    .nosotros-left>p {
        font-size: 1.15rem;
        margin: 16px 0 40px 16px;
    }

    .nosotros-left img {
        margin: 0 0 0 10px;
    }

    .nosotros-right {
        gap: 50px;
        margin-top: 30px;
    }

    .nosotros-item h3 {
        font-size: 1.55rem;
    }

    .nosotros-item p {
        font-size: 0.95rem;
        padding: 14px;
    }

    .nosotros-item p .corner-tr {
        height: 80px;
        width: 18%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #nosotros {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 24px;
    }

    .nosotros-left h2 {
        font-size: 2.5rem;
        margin: 0 0 16px;
    }

    .nosotros-left>p {
        font-size: 1.1rem;
        margin: 20px 0 30px;
        max-width: 100%;
    }

    .nosotros-left img {
        width: 100%;
        margin: 0;
    }

    .nosotros-right {
        gap: 50px;
        margin-top: 30px;
    }

    .nosotros-item h3 {
        font-size: 1.5rem;
    }

    .nosotros-item p {
        font-size: 0.95rem;
        padding: 14px;
    }

    .nosotros-item p .corner-tr {
        height: 60px;
        width: 20%;
    }
}



/* SECTION 4: "Servicios que impulsan tu negocio" */
#servicios {
    padding: 80px 40px;
    background-color: #E4D2CC;
}

.servicios-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.servicios-eyebrow {
    font-family: 'Cantarell', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #CF332D;
    margin: 0 0 12px;
}

.servicios-header h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 2.2rem;
    color: #2A0C11;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1160px;
    margin: 0 auto;
}

.servicio-item {
    background-color: #FAF8F6;
    padding: 32px 28px;
    border-radius: 12px;
    border-bottom: 4px solid #CF332D;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}


.servicio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.servicio-icono {
    color: #CF332D;
    margin-bottom: 16px;
}

.servicio-item h3 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.2rem;
    color: #2A0C11;
    margin-bottom: 12px;
}

.servicio-item p {
    font-family: 'Cantarell', sans-serif;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* cada tarjeta enlaza a su propia landing */
.servicio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    margin-top: auto;
    /* empuja el enlace hacia abajo */
    padding-top: 20px;
    color: #CF332D;
    font-family: 'Cantarell', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
}


.servicio-link::after {
    content: "\2192";
}

/* subrayado que crece al pasar el mouse o al llegar con teclado (Tab) */
.servicio-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #CF332D;
    transition: width 0.25s ease;
}

.servicio-link:hover::before,
.servicio-link:focus-visible::before {
    width: 100%;
}

/* RESPONSIVE SERVICIOS  */

/* Tablet */
@media (max-width: 992px) {
    #servicios {
        padding: 60px 30px;
    }

    .servicios-header {
        margin-bottom: 40px;
    }

    .servicios-header h2 {
        font-size: 2rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .servicio-item {
        padding: 28px 24px;
    }

    .servicio-item h3 {
        font-size: 1.15rem;
    }

    .servicio-item p {
        font-size: 0.92rem;
    }
}

/* Mobile */
@media (max-width: 700px) {
    #servicios {
        padding: 50px 24px;
    }

    .servicios-header {
        margin-bottom: 35px;
    }

    .servicios-header h2 {
        font-size: 1.8rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .servicio-item {
        padding: 22px 18px;
    }

    .servicio-icono {
        margin-bottom: 10px;
    }

    .servicio-item h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .servicio-item p {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .servicio-link {
        font-size: 0.8rem;
        margin-top: 12px;
        padding-top: 14px;
    }
}


/* SECTION 5: "Beneficios" */
#beneficios {
    padding: 80px 40px;
    background-color: #FAF8F6;
}

/* centered title + eyebrow label */
.section-header {
    text-align: left;
    max-width: 1500px;
    margin: 0 auto 50px;
}

/* "Por que elegirnos" */
.section-label {
    display: block;
    font-family: 'Cantarell', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #CF332D;
    margin-bottom: 12px;
}

/* "Beneficios de contratar nuestros servicios" */
.section-header h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 2.2rem;
    color: #2A0C11;
}

/* 3x3 grid of benefit rows */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto 50px;
}

/* icon + text side by side, each in its own box */
.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #E8E2DE;
    min-height: 0;
}

/* arrow*/
.beneficio-item>i {
    color: #CF332D;
    font-size: 1.05rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
    line-height: 1;
}


.beneficio-item h3 {
    font-style: normal;
    font-family: 'Cantarell', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2A0C11;
    margin: 0 0 6px;
}


/* dark highlight box below the grid */
.beneficios-destacado {
    max-width: 800px;
    margin: 0 auto;
    background-color: #2A0C11;
    border-radius: 12px;
    padding: 15px 30px;
}

.beneficios-destacado h3 {
    font-family: 'Fjalla One';
    font-size: 1.5rem;
    color: #ffffff;
    margin: 10px;
}

.beneficios-destacado p {
    font-family: 'Cantarell', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.90rem;
    line-height: 1.;
    margin: 0;
}

@media (max-width: 1024px) {
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .beneficio-item {
        padding: 8px;
        gap: 8px;
    }

    .beneficio-item>i {
        font-size: 0.9rem;
    }

    .beneficio-item h3 {
        font-size: 0.9rem;
    }
}

/*SECTION 6: Valores corporativos */

#valores {
    padding: 80px 40px;
    background-color: #eee9e4;
}

#valores .section-header {
    text-align: left;
    max-width: 1500px;
    margin: 0 auto 50px;
}

/* 4-column grid – cards*/
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1160px;
    margin: 0 auto;
}

/*The tag-style card*/
.valor-item {
    background-color: #852C38;
    color: #eee9e4;
    border-radius: 16px 32px 16px 16px;
    /* ← esquina superior derecha más redondeada / cortada */
    padding: 28px 24px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    box-shadow: 0 6px 18px rgba(93, 2, 2, 0.25);
}

/* Title (left-aligned, matches Fjalla One style) */
.valor-item h3 {
    font-family: 'Fjalla One';
    font-style: italic;
    font-size: 1.35rem;
    color: #eee9e4;
    margin: 0 0 14px;
    padding-bottom: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    /* thin white line */
}

/* Description – small, left-aligned, pushed to bottom */
.valor-item p {
    font-family: 'Cantarell', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    text-align: left;
}

/* White circle “hole” – top-right corner (tag look) */
.valor-item::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 16px;
    height: 16px;
    background-color: #eee9e4;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #852C38;
}

/* RESPONSIVE VALORES    */
/* Tablet */
@media (max-width: 1024px) {
    #valores {
        padding: 60px 30px;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    #valores {
        padding: 50px 16px;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .valor-item {
        min-height: 140px;
        padding: 16px 14px 18px;
    }

    .valor-item h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .valor-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .valor-item::before {
        width: 12px;
        height: 12px;
        top: 10px;
        right: 10px;
    }
}

/* 
                    SECTION 7: "Solución Híbrida"
*/

#solucion-hibrida {
    padding: 90px 40px;
    background-color: #FAF8F6;
}

/* Header stays consistent with other sections */
#solucion-hibrida .section-header {
    text-align: left;
    max-width: 1200px;
    margin: 0px 0px 90px 20px;
}

#solucion-hibrida .section-label {
    margin-top: 10px;
    margin-left: 15px;
    color: #CF332D;
    /* brand red */
}

#solucion-hibrida .section-header h2 {
    margin: 0px 0px 0px 10px;
    color: #2A0C11;
    font-size: 3rem;
}

/* Container of all rows*/
.hibrida-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1050px;
    margin: 0 auto 50px;
}

/*Single row (image + card)*/
.hibrida-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Reverse order for the middle row */
.hibrida-row--reverse {
    flex-direction: row-reverse;
}

/* Circular image*/
.hibrida-image {
    flex-shrink: 0;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Primera imagen (Agente IA) */
.hibrida-row:nth-child(1) .hibrida-image img {
    object-position: center 80%;
}

/* Segunda imagen (Agentes Humanos) */
.hibrida-row:nth-child(2) .hibrida-image img {
    object-position: center 100%;
}

/* Tercera imagen (Cliente Satisfecho) */
.hibrida-row:nth-child(3) .hibrida-image img {
    object-position: center 0%;
}

.hibrida-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*Text cards*/
.hibrida-card {
    background-color: #F5F1EE;
    /* light warm card */
    border-radius: 20px;
    padding: 28px 32px;
    flex: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hibrida-card h3 {
    font-family: 'Fjalla One', sans-serif;
    font-style: italic;
    font-size: 1.35rem;
    color: #2A0C11;
    margin: 0 0 12px;
}

.hibrida-card p {
    font-family: 'Cantarell', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Dark featured card (middle one) */
.hibrida-card--destacado {
    background-color: #2A0C11;
    /* same dark red used in valores */
    color: #eee9e4;
}

.hibrida-card--destacado h3 {
    color: #ffffff;
}

.hibrida-card--destacado p {
    color: rgba(255, 255, 255, 0.9);
}

/*Bottom tagline*/
.hibrida-tagline {
    text-align: center;
    font-family: 'Fjalla One', sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #CF332D;
    margin-top: 30px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* RESPONSIVE            */
/* Tablet */
@media (max-width: 992px) {
    #solucion-hibrida {
        padding: 70px 30px;
    }

    #solucion-hibrida .section-header {
        margin: 0 0 60px 10px;
    }

    #solucion-hibrida .section-label {
        margin-top: 40px;
        margin-left: 10px;
    }

    #solucion-hibrida .section-header h2 {
        font-size: 2.4rem;
        margin-left: 5px;
    }

    .hibrida-list {
        gap: 30px;
    }

    .hibrida-row {
        gap: 24px;
    }

    .hibrida-image {
        width: 140px;
        height: 140px;
    }

    .hibrida-card {
        padding: 24px 26px;
    }

    .hibrida-card h3 {
        font-size: 1.25rem;
    }

    .hibrida-tagline {
        font-size: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #solucion-hibrida {
        padding: 60px 20px;
    }

    #solucion-hibrida .section-header {
        margin: 0 0 40px 0;
        text-align: center;
    }

    #solucion-hibrida .section-label {
        margin-top: 20px;
        margin-left: 0;
    }

    #solucion-hibrida .section-header h2 {
        font-size: 2rem;
        margin: 0;
    }

    .hibrida-row,
    .hibrida-row--reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hibrida-image {
        width: 110px;
        height: 110px;
    }

    .hibrida-card {
        padding: 22px 20px;
    }

    .hibrida-card h3 {
        font-size: 1.2rem;
    }

    .hibrida-tagline {
        font-size: 1.15rem;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* SECTION: MAP */
#contacto {
    padding: 80px 40px;
    background-color: #eee9e4;
}

#contacto .section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 30px;
}

.contacto-direccion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 30px;
}

.contacto-direccion i {
    color: #CF332D;
    font-size: 1.1rem;
}

.contacto-direccion p {
    font-family: 'Cantarell', sans-serif;
    color: #2A0C11;
    font-size: 1rem;
    margin: 0;
}

.contacto-mapa {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 0 auto;
    background: #eee9e4;
    border-radius: 12px;
    overflow: hidden;
}

.contacto-mapa iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 992px) {
    .contacto-mapa {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .contacto-mapa {
        height: 260px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    #contacto {
        padding: 60px 30px;
    }

    .contacto-mapa iframe {
        height: 340px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #contacto {
        padding: 50px 20px;
    }

    .contacto-direccion {
        text-align: center;
    }

    .contacto-direccion p {
        font-size: 0.9rem;
    }

    .contacto-mapa iframe {
        height: 260px;
    }
}

/* SECTION 8: "Contactanos" */
#cta {
    background-image: url("../assets/images/preFooter.jpg");
    background-size: cover;
    background-position: center;
    padding: 180px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* OVERLAY */
#cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(42, 12, 17, 0.80);
    z-index: -1;
}

.cta-content {
    max-width: 960px;
    margin: 0 auto;
}

#cta h2 {
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    max-width: 800px;
    margin: 10px auto 28px;
}

#cta p {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Cantarell', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    max-width: 680px;
    margin: 30px auto 40px;
}

/* SECTION 9: FOOTER */
/* SECTION 9 "Footer" */
#footer {
    background-color: #2A0C11;
    padding: 60px 40px 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 40px;
    max-width: 1160px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* brand column: logo + tagline */
.footer-brand {
    max-width: 380px;
}

#footer .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

#footer .logo-icon {
    width: 55px;
    height: 50px;
    background-color: #452A2F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#footer .logo-icon img {
    height: 70px;
    display: block;
}

#footer .logo-text {
    font-family: 'Fjalla One', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.footer-brand>p {
    font-family: 'Cantarell', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.9;
    margin: 25px 0px 0px 10px;
}

/* nav + contacto columns*/
.footer-nav h3,
.footer-contacto h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 16px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-nav ul li a {
    font-family: 'Cantarell', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: #CF332D;
}

.footer-contacto p {
    font-family: 'Cantarell', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0 0 8px;
}

.footer-contacto p i {
    color: #CF332D;
    margin-right: 8px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 1160px;
    margin: 0 auto;
    padding-top: 24px;
}

.footer-bottom p {
    font-family: 'Cantarell', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    font-family: 'Cantarell', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #CF332D;
}


/* Tablet */
@media (max-width: 992px) {

    /* CTA */
    #cta {
        padding: 140px 30px;
    }

    #cta h1 {
        font-size: 34px;
    }

    #cta p {
        font-size: 16px;
        margin: 24px auto 32px;
    }

    /* Footer */
    #footer {
        padding: 50px 30px 25px;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* CTA */
    #cta {
        padding: 100px 20px;
    }

    #cta h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    #cta p {
        font-size: 15px;
        margin: 20px auto 30px;
    }

    /* Footer */
    #footer {
        padding: 40px 20px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand>p {
        margin: 16px 0 0 8px;
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* Ocultar imagen de la section 3 en mobile */
    .cliente-section3-image {
        display: none;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    #cta {
        padding: 80px 16px;
    }

    #cta h1 {
        font-size: 24px;
    }

    #cta p {
        font-size: 14px;
    }

    #footer {
        padding: 35px 16px 18px;
    }

    #footer .logo-text {
        font-size: 1rem;
    }
}

/* MAPA*/
.contacto-mapa {
    width: 100%;
    min-height: 400px;
    background: #f0f0f0;
}

/* BANNER DE COOKIES */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    max-width: 780px;
}

.cookie-banner a {
    color: #CF332D;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #ff5a54;
}

.cookie-banner button {
    background: #CF332D;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-family: 'Cantarell', sans-serif;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.cookie-banner button:hover {
    background: #000000;
}

.cookie-banner button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
        gap: 14px;
    }

    .cookie-banner p {
        font-size: 13px;
    }

    .cookie-banner button {
        width: 100%;
        max-width: 220px;
    }
}


/* 
   PÁGINAS LEGALES
    */
.legal-wrapper {
    background-color: #bd580b;
    padding: 0 24px;
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 0;
    font-family: 'Cantarell', sans-serif;
    color: #333;
    line-height: 1.7;
}

.legal-page h1 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 2.5rem;
    color: #2A0C11;
    margin-bottom: 8px;
}

.legal-page .legal-updated {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.3rem;
    color: #2A0C11;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-page p {
    margin-bottom: 14px;
}

.legal-page ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 14px;
}

.legal-page ul li {
    margin-bottom: 6px;
}

.legal-page a {
    color: #CF332D;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-wrapper {
        padding: 0 20px;
    }

    .legal-page {
        padding: 50px 0;
    }

    .legal-page h1 {
        font-size: 1.9rem;
    }

    .legal-page h2 {
        font-size: 1.15rem;
    }
}