/* 1. VARIABLES Y BASE */
:root {
    --color-fondo: #ffffff;
    --color-fondo-alt: #f8f7f5;
    --color-primario: #000000;
    --color-texto: #333333;
    --fuente-titulos: 'Playfair Display', serif;
    --fuente-cuerpo: 'Lato', sans-serif;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Colores oficiales de redes sociales */
    --color-instagram: #E4405F;
    --color-whatsapp: #25D366;
    --color-facebook: #1877F2;
    --color-email: #666666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-cuerpo);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 2. NAVEGACIÓN */
.menu {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(238, 238, 238, 0.5);
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.menu.scrolled {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo-texto {
    font-family: var(--fuente-titulos);
    font-size: 1.3rem;
    letter-spacing: 4px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

/* 3. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    background-color: #080808;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100%; left: -100%; right: -100%; bottom: -100%;
    background: repeating-conic-gradient(from 0deg, transparent 0%, rgba(248, 247, 245, 0.25) 10%, transparent 20%);
    animation: rotate-spiral 40s linear infinite;
    z-index: -2;
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, #080808 80%);
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate-spiral {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp 1.2s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: var(--fuente-titulos);
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
    font-family: var(--fuente-titulos);
    font-style: italic;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .hero-summary {
    max-width: 700px;
    margin-bottom: 45px;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero .hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 4. BOTONES */
.boton-negro,
.boton-contacto {
    background: #000;
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border: 1px solid #000;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.boton-minimal {
    border: 1px solid #fff;
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s;
    background: transparent;
    display: inline-block;
}

.boton-negro:hover,
.boton-contacto:hover {
    background: #333;
    border-color: #333;
}

.boton-minimal:hover {
    background: #fff;
    color: #000;
}

/* 5. SECCIONES GENERALES */
section {
    padding: 120px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-family: var(--fuente-titulos);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 50px;
}

.seccion-clara {
    background-color: #f2f0eb; /* Un tono arena/lino más cálido */
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png'); /* Textura sutil */
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* Añadir un "destello" de luz orgánico */
.seccion-clara::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(140, 146, 132, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.lista-dolores {
    list-style: none;
    max-width: 700px;
    margin: 40px auto;
    text-align: left;
}

.lista-dolores li {
    padding: 18px 0 18px 45px;
    position: relative;
    border-bottom: 1px solid #e0ddd7;
    font-size: 1.1rem;
}

.lista-dolores li::before {
    content: "·";
    position: absolute;
    left: 10px;
    font-size: 2.5rem;
    color: #999;
    top: 5px;
}

.destacado {
    font-family: var(--fuente-titulos);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-style: italic;
    margin-top: 50px;
    color: #000;
}

.texto-seo {
    max-width: 850px;
    margin: 40px auto;
    text-align: center;
    font-size: 1.15rem;
}

/* 6. CARDS */
.galeria-abstracta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.concepto-item {
    background: #fff;
    padding: 60px 40px;
    border: 1px solid #f0f0f0;
    text-align: left;
    transition: 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.concepto-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, #8c9284, transparent);
    transition: height 0.3s ease;
}

.concepto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.concepto-item:hover::before {
    height: 100%;
}

.concepto-item h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* 7. FRANJA ATMÓSFERA */
.atmo-franja {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('src/img/pulso.jpg') center/cover no-repeat fixed;
}

/* 7.5. SOBRE MÍ */
.sobremi-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.sobremi-imagen-wrapper {
    flex: 0 0 auto;
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.sobremi-imagen {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #eee;
    padding: 8px;
}

.sobremi-texto {
    flex: 1;
    min-width: 250px;
}

.sobremi-titulo {
    font-family: var(--fuente-titulos);
    margin-bottom: 20px;
}

.sobremi-cita {
    border-left: 3px solid #000;
    padding-left: 20px;
    font-style: italic;
    margin-top: 25px;
}

/* 8. PROCESO (OSCURO) */
.seccion-oscura {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url('src/img/manos-conexion.jpg') center/cover no-repeat fixed;
    color: #fff;
    max-width: 100%;
}

.pilares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.numero {
    display: block;
    font-family: var(--fuente-titulos);
    font-size: 3.5rem;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* 9. CTA FINAL */
.seccion-expansion {
    position: relative;
    background-color: #050505;
    color: #fff;
    max-width: 100%;
    overflow: hidden;
    z-index: 1;
}

.seccion-expansion::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(248, 247, 245, 0.25) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse-expand 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.5;
}

.seccion-expansion::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 120vw; height: 120vw;
    background: radial-gradient(circle, rgba(248, 247, 245, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse-expand 8s ease-in-out infinite 4s;
    z-index: -1;
    opacity: 0.4;
}

@keyframes pulse-expand {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
}

.microcopy {
    margin-top: 30px;
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}



/* 11. FOOTER Y REDES SOCIALES */
footer {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: var(--color-fondo);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0 20px;
}

.social-icons a {
    color: #666;
    font-size: 1.4rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: #000;
    transform: translateY(-3px);
}

/* Colores oficiales de redes sociales en hover */
.social-icons a[aria-label="Instagram"]:hover,
.social-icons a[href*="instagram"]:hover {
    color: var(--color-instagram);
}

.social-icons a[aria-label="WhatsApp"]:hover,
.social-icons a[href*="wa.me"]:hover {
    color: var(--color-whatsapp);
}

.social-icons a[aria-label="Facebook"]:hover,
.social-icons a[href*="facebook.com"]:hover {
    color: var(--color-facebook);
}

.social-icons a[aria-label="Email"]:hover,
.social-icons a[href*="mailto"]:hover {
    color: var(--color-email);
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 20px;
}

/* 12. BLOG HEADER */
.blog-header {
    min-height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('src/img/blog-header.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.blog-header h1 {
    font-family: var(--fuente-titulos);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.blog-header .tagline {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 13. BLOG GRID */
.blog-grid-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.blog-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.blog-fecha {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.leer-mas {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.leer-mas:hover {
    color: #666;
    margin-left: 5px;
}

/* 14. ARTÍCULO COMPLETO */
.articulo-completo {
    padding: 60px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.articulo-contenedor {
    background: #fff;
}

.articulo-completo h1 {
    font-family: var(--fuente-titulos);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin: 20px 0;
    line-height: 1.3;
}

.articulo-imagen {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    object-position: center;
    margin: 30px auto;
    border-radius: 4px;
    display: block;
}

.articulo-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.articulo-texto h2 {
    font-family: var(--fuente-titulos);
    font-size: 1.6rem;
    margin: 40px 0 20px;
    text-align: left;
}

.articulo-texto p {
    margin-bottom: 20px;
}

.articulo-cita {
    font-family: var(--fuente-titulos);
    font-size: 1.4rem;
    font-style: italic;
    color: #8c9284;
    padding: 30px;
    margin: 30px 0;
    border-left: 3px solid #000;
    background: #f8f7f5;
}

.articulo-footer {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* ========== LOGO TIPOGRÁFICO ESTILIZADO ========== */
.logo {
    position: relative;
    padding-bottom: 6px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent, #8c9284);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo-link {
    text-decoration: none;
    color: #000;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-linea {
    display: flex;
    align-items: center;
    font-family: var(--fuente-titulos);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.logo-parte, .o-uno, .o-dos {
    display: inline-block;
}

.pulso-minimo {
    display: inline-block;
    width: 28px;
    height: 18px;
    margin: 0 4px;
    position: relative;
    top: 2px;
}

.ecg-diminuto svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pulso-base-delicada,
.pulso-delicado {
    fill: none;
    stroke: var(--accent, #8c9284);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.punto-pulso {
    fill: var(--accent, #8c9284);
    transition: fill 0.3s ease;
}

.lema {
    display: block;
    font-family: var(--fuente-cuerpo);
    font-size: 0.65rem;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-top: 4px;
}

.logo-link:hover .pulso-base-delicada,
.logo-link:hover .pulso-delicado {
    stroke: #000;
}

.logo-link:hover .punto-pulso {
    fill: #000;
}

.logo-pulso,
.logo-origen {
    font-size: 1.2rem;
    font-weight: 400;
}

.logo-separador {
    font-size: 1.2rem;
    margin: 0 8px;
    color: var(--accent, #8c9284);
}

/* Modo oscuro (si hay secciones con fondo oscuro, el logo se adapta) */
.seccion-oscura .logo-link,
footer .logo-link {
    color: #fff;
}

.seccion-oscura .logo-separador,
footer .logo-separador {
    color: rgba(255, 255, 255, 0.6);
}

/* 15. RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        padding: 20px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
        opacity: 0;
        transform: translateY(-10px);
        transition: 0.4s ease;
        pointer-events: none;
        display: flex;
    }

    .nav-links.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 5px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin: 0 auto;
}

/* Esta regla va por separado, no anidada */
    .hero-buttons .boton-minimal,
    .hero-buttons .boton-negro {
        width: 100%;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
}

    section {
        padding: 80px 20px;
    }
    /* La regla general ya funciona, no es necesario repetirla aquí 
    .atmo-franja {
        height: 60vh;
        background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
                url('src/img/pulso.jpg') center/cover no-repeat fixed;
    }*/
    
    .sobremi-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .sobremi-texto {
        text-align: center;
    }

    .sobremi-texto h2,
    .sobremi-texto p,
    .sobremi-cita {
        text-align: center;
    }

    .sobremi-cita {
        border-left: none;
        padding-left: 0;
    }

    .sobremi-imagen-wrapper {
        max-width: 250px;
    }

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

    .articulo-footer {
        flex-direction: column;
        gap: 15px;
    }

    .articulo-cita {
        font-size: 1.1rem;
        padding: 20px;
    }

    .social-icons {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo-texto {
        font-size: 1rem;
        letter-spacing: 3px;
    }
}

/* ========== MEJORAS PARA EL FORMULARIO ========== */
.formulario-seccion {
    background-color: var(--color-fondo-alt);
    text-align: center;
}

.formulario-seccion form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.formulario-seccion input,
.formulario-seccion textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    font-family: var(--fuente-cuerpo);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.formulario-seccion input:focus,
.formulario-seccion textarea:focus {
    outline: none;
    border-color: #000;
}

.formulario-seccion button {
    display: inline-block;
    width: auto;
    min-width: 250px;
    margin-top: 10px;
}

/* Ajustes responsivos para el formulario */
@media (max-width: 768px) {

    .formulario-seccion input,
    .formulario-seccion textarea {
        padding: 14px;
    }

    .formulario-seccion button {
        width: 100%;
        min-width: auto;
    }
}
