:root {
    --primary-color: #1e88a8;
    --secondary-color: #2fb3c9;
    --text-dark: #1c1c1c;
    --light-bg: #f8fbfd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    background-color: var(--light-bg);
    overflow-x: hidden;
}
.header-container {
    width: 90%;
  
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
/* Círculo 1 */
body::before {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: rgba(47, 179, 201, 0.05);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: -1;
}

/* Círculo 2 */
body::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;
    background: rgba(30, 136, 168, 0.04);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    z-index: -1;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* NAVBAR */
* {
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: white;
    z-index: 1000;
}body {
    padding-top: 90px; /* ajusta según altura real del header */
}
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.logo img {
    max-height: 80px;   /* controla altura real */
    width: auto;
    display: block;
}@media (max-width: 768px) {
    .logo img {
        max-height: 50px;
    }
}
nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #1c1c1c;
    font-weight: 400;
    font-size: 16px;
    transition: 0.3s ease;
}

nav a:hover {
    color: #1e88a8;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo span {
    font-weight: 600;
    font-size: 18px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}@media (max-width: 768px) {

        .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }

     nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
}section {
    scroll-margin-top: 120px;
}
/* HERO */

.hero {
    padding: 80px 20px;
    position: relative;
    width: 90%;           /* ocupa el 90% del ancho */
    height: 55vh;         /* altura proporcional a pantalla */
    margin: 60px auto;    /* centrado horizontal */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background-image: url("img/hero.png");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
/* Capa oscura suave para que el texto se lea bien */
.overlay {
    position: absolute;
    inset: 0;
        background: rgb(14 88 110 / 55%);
    }.hero {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Contenido */
.hero-content {
    position: relative;
    max-width: 850px;
    color: white;
    z-index: 2;

}

.hero h1 {
    font-size: clamp(26px, 6vw, 35px);
    
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* Botón */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #2fb3c9;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: #1e88a8;
}

/* RESPONSIVE */

@media(max-width: 768px){

    header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    nav.active {
        display: block;
    }
}






/* SOBRE MI */

.sobre-mi {
    width: 90%;
    margin: 100px auto;
}

.sobre-mi-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
}

.sobre-mi-texto {
    flex: 1;
}

.sobre-mi-texto h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.sobre-mi-texto p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.sobre-mi-imagen {
    
    display: flex;
    justify-content: center;
}

.sobre-mi-imagen img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


.sobre-mi-container {
  display: flex;
  align-items: stretch; /* 🔥 clave: misma altura */
  gap: 50px;
}


/* Invertir columnas */
.reverse {
    flex-direction: row-reverse;
}
.sobre-mi-container.reverse {
    flex-direction: row-reverse;
}
@media(max-width: 768px){

    .sobre-mi-container,
    .sobre-mi-container.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .sobre-mi-imagen {
        order: 2; /* la imagen va después del texto */
    }

    .sobre-mi-texto {
        order: 1;
    }

    .sobre-mi-texto {
        text-align: left; /* evita que quede centrado raro */
    }
}

/* ============================= */
/*        PRESENTACIÓN TOP       */
/* ============================= */

.presentacion {
    width: 100%;
    

    text-align: center;
}

.presentacion-contenido {
    max-width: 1200px;
    margin: auto;
}

.presentacion h2 {
    font-size: 38px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.presentacion p {
    font-size: 20px;
    color: #444;
    margin-bottom: 30px;
}

.linea-decorativa {
    width: 120px;
    height: 3px;
    background-color: var(--primary-color);
    margin: auto;
}





/* ============================= */
/*         BANNER FRASE          */
/* ============================= */

.frase-banner {
    position: relative;
    width: 90%;
    margin: 100px auto;
    padding: 100px 40px;
    border-radius: 20px;
    overflow: hidden;

      background-image: url("img/fondobanner.png"); /* puedes poner una imagen suave */
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Capa para que el texto se lea bien */
.frase-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 88, 110, 0.55);
}

/* Contenido */
.frase-contenido {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}

.frase-contenido h2 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
}

.frase-contenido p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
}@media (max-width: 768px) {

    .frase-banner {
        padding: 70px 25px;
    }

    .frase-contenido h2 {
        font-size: 24px;
    }

    .frase-contenido p {
        font-size: 15px;
    }
}





/* ============================= */
/*           SERVICIOS           */
/* ============================= */

.servicios {

    
    text-align: center;
}

.servicios-intro {
    width: 70%;
    margin: 0 auto 70px auto;
}

.servicios-intro h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.servicios-subtexto {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* GRID */

.servicios-grid {
    width: 85%;
    margin: auto;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CARDS */

.servicio-card {
    background: white;
    width: 360px;
    padding: 50px 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.servicio-card::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 25px auto;
    border-radius: 2px;
}

.servicio-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.servicio-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

/* BOTÓN */

.btn-servicio {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.btn-servicio:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================= */
/*       DETALLE SERVICIOS       */
/* ============================= */

.servicios {

    
    width: 100%;
}

.servicios-header {
    width: 60%;
    margin: 0 auto 60px auto;
    text-align: center;
}

.servicios-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.servicios-header p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* TABS */

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.tab {
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.tab:hover {
    background: var(--primary-color);
    color: white;
}/* CONTENIDO OCULTO */

.contenido-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    text-align: left;
}

.contenido-extra.abierto {
    max-height: 2000px;
    margin-top: 20px;
}

.leer-mas {
    margin-top: 25px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.leer-mas:hover {
    text-decoration: underline;
}

/* CONTENIDO */

.tab-content {
    display: none;
    width: 60%;
    margin: auto;
    animation: fade 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tab-content h4 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.tab-content p {
    line-height: 1.8;
    color: #444;
}

.tab-content ul {
    padding-left: 20px;
    line-height: 1.8;
}

.highlight {
    margin-top: 30px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background: #eef5fa;
    border-radius: 8px;
}
/* ============================= */
/*      FAQ NEUROPSICOLOGÍA     */
/* ============================= */
ul {
    color: #444;
}p {
    color: rgb(68, 68, 68);
}p#textoinicio {
    color: white;
}
.faq-item {
    margin-top: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px 0;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 18px;
}

.faq-question.active::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p,
.faq-answer ul {
    margin-top: 10px;
    line-height: 1.7;
    color: #555;
}

.tab-content p,
.tab-content h4,
.tab-content ul,
.tab-content li {
    text-align: left;
}
@keyframes fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .servicios-header,
    .tab-content {
        width: 85%;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }
}
/* ============================= */
/*             ÁREAS             */
/* ============================= */

.areas {
    padding: 120px 0;
    
}

.areas-wrapper {
    width: 60%;
    margin: auto;
}

.areas-intro {
    text-align: center;
    margin-bottom: 60px;
}

.areas-intro h2 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ACCORDION */

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    width: 100%;
    padding: 22px 10px;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    transition: 0.3s ease;
}

.accordion-header:hover {
    color: var(--secondary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 40px;   /* ← ESTA ES LA CLAVE */
}

.accordion-content ul {
    padding: 10px 0 25px 0;
}
.accordion-content li {
    margin-bottom: 0px;
   
    color: #555;
}

.nota {
    font-size: 14px;
    color: #777;
    margin: 15px 10px 20px 10px;
}.areas {
    padding: 120px 0;
    padding-bottom: 0px;
}.adultos-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.adultos-texto {
    flex: 1.4;
}

.adultos-img {
    flex: 1;
}

.adultos-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
    .adultos-layout {
        flex-direction: column;
    }
}
.contacto-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contacto-info {
    flex: 1;
    min-width: 300px;
}

.contacto-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0e586e;
}

.contacto-info h3 {
    margin-top: 25px;
    color: #0e586e;
}

.contacto-info p,
.contacto-info li {
    color: #333;
    line-height: 1.6;
}

.contacto-info ul {
    padding-left: 18px;
}

.contacto-info a {
    color: #0e586e;
    text-decoration: none;
    font-weight: 500;
}

.contacto-info a:hover {
    text-decoration: underline;
}

.contacto-formulario {
    flex: 1;
    min-width: 300px;
}

.contacto-formulario h3 {
    margin-bottom: 20px;
    color: #0e586e;
}

.contacto-formulario form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-formulario input,
.contacto-formulario textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
}

.contacto-formulario button {
    background: #0e586e;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contacto-formulario button:hover {
    background: #083f4f;
}

.contacto-mapa {
    margin-top: 60px;
}
@media (max-width: 768px) {

    .contacto-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px; /* 👈 margen interno lateral */
    }

    .contacto-info,
    .contacto-formulario {
        min-width: 100%;
    }

}

.colaboraciones {
    padding: 80px 20px;
    
}

.colaboraciones-container {
    max-width: 1200px;
    margin: 0 auto;
}

.colaboraciones-header {
    text-align: center;
    margin-bottom: 50px;
}

.colaboraciones-header h2 {
    font-size: 2rem;
    color: #0e586e;
    margin-bottom: 15px;
}

.colaboraciones-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    line-height: 1.6;
}

.colaboraciones-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.colaboracion-item {
    flex: 1;
    min-width: 280px;
    max-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.colaboracion-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Efecto hover elegante */
.colaboracion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}.footer {
    background: #0e586e;
    color: #ffffff;
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.footer h4 {
    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    transition: 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}.footer {
    background: linear-gradient(135deg, #0e586e, #083f4f);
}.footer {
    background: #0e586e;
    color: #ffffff;
}

/* 👇 Fuerza que TODO dentro del footer sea blanco */
.footer,
.footer * {
    color: #ffffff;
}



.sobre-mi-imagen2 {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
}

.sobre-mi-imagen2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.sobre-mi-container {
    display: flex;
    align-items: flex-start;
    gap: 40px; /* reduce el espacio */
}

.sobre-mi-texto {
    flex: 1.4;   /* más espacio al texto */
}

.sobre-mi-imagen img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}.sobre-mi-imagen {
    display: flex;
    justify-content: center; /* centra el círculo */
}

.sobre-mi-imagen img {
    width: 620px;
     /*height: 620px;*/
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}.sobre-mi-container {
    display: flex;
    align-items: stretch;   /* 👈 centra verticalmente */
    gap: 60px;
}.sobre-mi-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
}



.formacion-destacada {
    margin: 50px 0;
    padding-left: 25px;
    border-left: 3px solid var(--primary-color);
}

.formacion-destacada h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary-color);
}

.formacion-destacada ul {
    list-style: none;
    padding: 0;
}

.formacion-destacada li {
    margin-bottom: 8px;
    font-size: 16px;
}.frase-contenido2 {
    color:white;
    position: relative;
}html, body {
    overflow-x: hidden;
    max-width: 100%;
}





.whatsapp-float {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #29a71a;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.whatsapp-float img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}




.politica-privacidad{
margin-top:15px;
font-size:14px;
}

.check-privacidad{
display:block;
margin-bottom:10px;
}

.info-datos{
font-size:13px;
color:#666;
background:#f7f7f7;
padding:10px 14px;
border-radius:6px;
}

.info-datos summary{
cursor:pointer;
font-weight:600;
color:#2c6aa0;
margin-bottom:8px;
}

.info-datos p{
margin-top:10px;
line-height:1.5;
}.footer-acreditacion{
  text-align:center;
  margin-bottom:15px;
}

.footer-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px; /* espacio entre logos */
  margin-bottom:20px;
  flex-wrap:wrap;
}

.footer-logos img{
  height:80px; /* ajusta el tamaño si quieres */
  width:auto;
    max-width:100%;
  object-fit:contain;
}
/* Ajuste para móvil */
@media (max-width:768px){
  .footer-logos img{
    max-height:60px;
  }
}


/* Banner cookies */

#cookie-banner{
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: #1f2933;
color: white;
padding: 18px 20px;
display: none;
justify-content: center;
align-items: center;
gap: 20px;
z-index: 9999;
flex-wrap: wrap;
}

#cookie-banner p{
margin: 0;
font-size: 14px;
}

#cookie-banner a{
color: #ffffff;
text-decoration: underline;
}

#accept-cookies{
background: var(--primary-color);
border: none;
padding: 10px 20px;
border-radius: 8px;
color: white;
cursor: pointer;
font-weight: 500;
}

#accept-cookies:hover{
opacity: 0.9;
}p#cookies {
    color: white;
}