/* # Proyecto: ZULEMA_RODRIGUEZ */
/* # Fecha: 2026-07-23 */
/* # Versión: v2.0 - Guía de Estilo Aplicada */

/* ========================================= */
/* VARIABLES DE DISEÑO (GUÍA DE ESTILO)      */
/* ========================================= */
:root {
    --color-primary: #5B2144;
    /* Berenjena Base - botones, acentos */
    --color-primary-dark: #3A132B;
    /* Berenjena Oscuro - títulos, footer */
    --color-accent: #E9CDE0;
    /* Malva Suave - fondos tarjetas */
    --color-bg-main: #FDFBFD;
    /* Fondo General Web */
    --color-bg-card: #F3EBF0;
    /* Fondo Secundario */
    --color-text-main: #2D2B2E;
    /* Texto párrafos */
    --color-text-light: #FFFFFF;
    /* Texto sobre fondos oscuros */
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ========================================= */
/* FUENTES LOCALES                           */
/* ========================================= */
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* ========================================= */
/* BASE                                      */
/* ========================================= */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 700;
}

a {
    transition: color 0.3s;
}

/* ========================================= */
/* HEADER                                    */
/* ========================================= */
.header {
    background-color: #fbf6fa;
    /*#FFFFFF;  /* blanco puro para que el logo se funda */
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(58, 19, 43, 0.08);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 6px 20px;
    box-shadow: 0 4px 15px rgba(58, 19, 43, 0.12);
}

.header-content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* LOGO BLOCK - logo + nº colegiada apilados */
.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: #fbf6fa;
    padding: 6px 12px 6px 0;
}

.logo-link {
    display: block;
    line-height: 0;
}

.logo-block img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

.header.scrolled .logo-block img {
    height: 56px;
}

.logo-block .colegiada-num {
    font-size: 0.76em;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.3px;
    white-space: nowrap;
    padding-left: 3px;
}

/* Nombre comercial bajo el logo */
.logo-brand-name {
    font-family: var(--font-heading);
    font-size: 1em;
    font-weight: 700;
    font-style: italic;
    color: var(--color-primary-dark);
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1.2;
}


/* Mantener retrocompatibilidad con .logo en otros HTML */
.logo {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo a img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

.header.scrolled .logo a img {
    height: 56px;
}

/* Header Right */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.header-contact-info {
    font-size: 0.85em;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-contact-info a {
    color: var(--color-text-main);
    text-decoration: none;
    white-space: nowrap;
}

.header-contact-info a:hover {
    color: var(--color-primary);
}

.hci-sep {
    color: #c4a0b8;
    font-weight: 300;
}

.colegiada-num {
    font-weight: 700;
    color: var(--color-primary);
}

/* NAV */
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav ul li a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.2px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--color-primary);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

/* ========================================= */
/* BOTONES                                   */
/* ========================================= */
.button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 7px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button-blue,
.button-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    box-shadow: 0 4px 14px rgba(91, 33, 68, 0.25);
}

.button-blue:hover,
.button-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(58, 19, 43, 0.3);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.button-secondary:hover {
    background-color: var(--color-bg-card);
}

.cta-hero {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 800;
}

.cta-hero:hover {
    background-color: #ddb8d0;
    transform: scale(1.04);
}

/* ========================================= */
/* HERO                                      */
/* ========================================= */
.hero {
    height: 580px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 400;
}

/* ========================================= */
/* REVEAL ANIMATION                          */
/* ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================= */
/* LAYOUT PRINCIPAL                          */
/* ========================================= */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.content-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 100px;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.section-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.section-image img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(58, 19, 43, 0.12);
    transition: transform 0.3s ease;
}

.section-image img:hover {
    transform: scale(1.02);
}

.section-info {
    flex: 1;
}

.section-info h2 {
    font-size: 2.2em;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.section-info h3 {
    font-size: 1.8em;
    color: var(--color-primary-dark);
    margin-top: 0;
}

.section-info p {
    font-size: 1.1em;
    line-height: 1.75;
    margin-bottom: 18px;
    color: var(--color-text-main);
}

/* ========================================= */
/* FEATURE LIST                              */
/* ========================================= */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 1.05em;
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 900;
}

/* ========================================= */
/* TARJETAS DE SERVICIOS                     */
/* ========================================= */
.service-card-featured {
    background: linear-gradient(135deg, var(--color-bg-main), var(--color-accent));
    border: 1px solid #d5afc8;
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 15px 35px rgba(91, 33, 68, 0.07);
}

.service-highlight-box {
    background-color: #ffffff;
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
}

/* ========================================= */
/* TESTIMONIOS                               */
/* ========================================= */
.testimonials-section {
    background-color: var(--color-bg-card);
    padding: 100px 20px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.4em;
    margin-bottom: 50px;
    color: var(--color-primary-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(91, 33, 68, 0.07);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05em;
    margin-bottom: 18px;
    color: var(--color-text-main);
}

.star-rating {
    color: #c08;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* ========================================= */
/* WHATSAPP BUTTON                           */
/* ========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    background-color: #25d366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
.footer {
    background-color: var(--color-primary-dark);
    color: #e8d5e0;
    padding: 60px 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Logo en footer - fondo claro para que se vea bien */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-wrapper {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 10px 14px;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo {
    height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05em;
    color: #fff !important;
    margin: 0 0 6px;
}

.footer-colegiada,
.footer-cop {
    font-size: 0.88em;
    color: #c4a0b8;
    margin: 4px 0;
}

.footer-column h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.15em;
    margin-bottom: 18px;
    padding-bottom: 8px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-column p {
    font-size: 0.92em;
    line-height: 1.65;
    margin: 8px 0;
    color: #c4a0b8;
}

.footer-column a {
    color: #e8d5e0;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.location-icon {
    margin-right: 4px;
}

/* Sub-footer */
.footer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(233, 205, 224, 0.2);
    margin-bottom: 25px;
}

.footer-bottom {
    background-color: var(--color-primary-dark);
    text-align: center;
    padding-bottom: 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-social a img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.footer-contact-summary {
    font-size: 0.88em;
    color: #c4a0b8;
    margin-bottom: 18px;
}

.footer-contact-summary a {
    color: #e8d5e0;
    text-decoration: none;
}

.footer-contact-summary a:hover {
    color: var(--color-accent);
}

.footer-legal-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-legal-nav a {
    color: #9e7a8f;
    text-decoration: none;
    font-size: 0.82em;
    transition: color 0.3s;
}

.footer-legal-nav a:hover,
.footer-legal-nav a.active {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright {
    margin: 0;
    font-size: 0.82em;
    color: #7a5a6a;
}

/* ========================================= */
/* FORMULARIOS (CONTACTO)                    */
/* ========================================= */
.contact-form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(91, 33, 68, 0.07);
    border: 1px solid var(--color-accent);
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--color-primary-dark);
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d5afc8;
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 33, 68, 0.12);
    background-color: #ffffff;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88em;
    color: #5a4a53;
    margin-bottom: 22px;
    text-align: left;
}

.form-checkbox input {
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background-color: var(--color-primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05em;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(91, 33, 68, 0.25);
}

.submit-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ========================================= */
/* FAQ                                       */
/* ========================================= */
.faq-section {
    margin-top: 80px;
    text-align: left;
}

.faq-section h2 {
    font-size: 2.1em;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    padding: 14px 20px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item[open] {
    box-shadow: 0 8px 22px rgba(91, 33, 68, 0.08);
    border-color: #c08;
}

.faq-item summary {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--color-primary-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4em;
    color: var(--color-primary);
    font-weight: 700;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    margin-top: 12px;
    font-size: 1em;
    line-height: 1.65;
    color: var(--color-text-main);
}

/* ========================================= */
/* SERVICIOS PÁGINA                          */
/* ========================================= */
.services-header {
    background-color: var(--color-bg-card);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.services-header h1 {
    font-size: 2.8em;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.services-header p {
    font-size: 1.2em;
    color: var(--color-text-main);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================= */
/* BANNER COOKIES                            */
/* ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 10px 35px rgba(58, 19, 43, 0.18);
    border-radius: 14px;
    padding: 24px;
    z-index: 10000;
    display: none;
    flex-direction: column;
    border: 1px solid var(--color-accent);
    font-family: var(--font-body);
}

.cookie-inner-container {
    display: flex;
    flex-direction: column;
}

.cookie-title {
    font-weight: 800;
    color: var(--color-primary-dark);
    font-size: 1.05em;
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 0.88em;
    line-height: 1.5;
    color: var(--color-text-main);
    margin-bottom: 16px;
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cookie-button {
    padding: 11px;
    border-radius: 7px;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88em;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
}

.blue-block {
    background-color: var(--color-primary);
    color: #fff;
}

.blue-block:hover {
    background-color: var(--color-primary-dark);
}

.outline-block {
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}

.outline-block:hover {
    background-color: var(--color-bg-card);
}

.gray-block {
    background-color: var(--color-bg-card);
    color: var(--color-text-main);
}

.gray-block:hover {
    background-color: var(--color-accent);
}

.manage-consent-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.83em;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(91, 33, 68, 0.2);
}

/* ========================================= */
/* LEGAL CONSENT                             */
/* ========================================= */
.legal-consent {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #9e7a8f;
    margin-top: 4px;
    line-height: 1.2;
    font-weight: normal;
}

.legal-consent a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.hero .legal-consent {
    color: rgba(255, 255, 255, 0.7);
}

.hero .legal-consent a {
    color: #fff;
}

/* ========================================= */
/* URGENCY / HIGHLIGHT BOXES                 */
/* ========================================= */
.urgency-note {
    background: var(--color-accent);
    border-left: 5px solid var(--color-primary);
    padding: 18px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 1.05em;
}

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */
@media (max-width: 1024px) {

    .content-section,
    .content-section.reverse {
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content-container {
        flex-direction: column;
        gap: 14px;
        padding: 8px 0;
    }

    /* logo-block centrado en movil */
    .logo-block {
        align-items: center;
        padding: 0;
    }

    .logo-block img {
        height: 72px;
    }

    .logo-block .colegiada-num {
        font-size: 0.8em;
        padding-left: 0;
        text-align: center;
    }

    /* retrocompat */
    .logo a img {
        height: 70px;
    }

    .header-right {
        align-items: center;
        width: 100%;
        gap: 14px;
    }

    .header-contact-info {
        justify-content: center;
        font-size: 0.82em;
        gap: 8px;
        flex-wrap: wrap;
        text-align: center;
        margin-bottom: 2px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 18px;
        column-gap: 22px;
        gap: 0;
    }

    .nav ul li a {
        font-size: 0.9em;
        padding: 4px 6px 6px 6px;
        display: inline-block;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.15em;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo-wrapper {
        margin: 0 auto 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cookie-banner {
        width: calc(100% - 30px);
        bottom: 10px;
        right: 15px;
    }
}