/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8fa3b0;
    --secondary-color: #c4b5a0;
    --dark-color: #2a3a42;
    --light-color: #f5f3f0;
    --border-color: #d9d3cc;
    --text-color: #5a7b8f;
    --success-color: #25d366;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fefdfb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-color);
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    cursor: pointer;
}

/* Navegación */

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 0.95rem;
}

.nav a.active {
    border-bottom: 2px solid #c99063;
    padding-bottom: 5px;
}

/* Dropdown */

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: " ▾";
    font-size: 0.7rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    z-index: 9999;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    white-space: nowrap;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--light-color);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f5f3f0 0%, #efe8e3 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: white;
}

/* Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

.servicios-main {
    background-color: white;
}

.servicios-main h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.servicios-main .link {
    display: block;
    text-align: center;
}

.tarjeta {
    background-color: #f5f3f0;
    padding: 2rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.tarjeta h3 {
    margin-bottom: 1rem;
}

.enfoque {
    background-color: white;
}

.enfoque h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.enfoque-card {
    background-color: #f5f3f0;
    padding: 2rem;
    border-radius: 6px;
    text-align: center;
}

.enfoque-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modalidad {
    background-color: white;
    text-align: center;
}

.modalidad h2 {
    margin-bottom: 2rem;
}

.modalidad p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final {
    background-color: #f5f3f0;
    text-align: center;
}

.cta-final h2 {
    margin-bottom: 1rem;
}

.cta-final p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f5f3f0 0%, #efe8e3 100%);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Servicios página detallada */
.servicios-intro {
    background-color: white;
    padding: 3rem 0;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.servicios-cajas {
    background-color: #f5f3f0;
    padding: 4rem 0;
}

.servicio-caja {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-color);
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.servicio-caja h2 {
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.caja-subseccion {
    margin-bottom: 1.5rem;
}

.caja-subseccion:last-of-type {
    margin-bottom: 0;
}

.caja-subseccion h3 {
    color: var(--dark-color);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.caja-subseccion p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
}

.caja-subseccion-highlight {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1.5rem;
    border-left: none;
}

.caja-subseccion-highlight h3 {
    color: var(--dark-color);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.caja-subseccion-highlight p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.caja-subseccion-highlight p:last-child {
    margin-bottom: 0;
}

.separador {
    height: 1px;
    background-color: rgba(217, 211, 204, 0.6);
    margin: 2rem 0;
}

.caja-cta {
    text-align: right;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(217, 211, 204, 0.6);
}

.cta-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cta-link:hover {
    color: var(--dark-color);
}

.servicios-cierre {
    background-color: #f5f3f0;
    padding: 2rem 0;
    text-align: center;
}

.servicios-cierre p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Servicios */
.servicio-section {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.servicio-section h2 {
    color: var(--dark-color);
}

.servicio-section p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Equipo/Sobre mí */
.perfil-section {
    background-color: white;
    padding: 4rem 0;
}

.perfil-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.perfil-foto {
    text-align: center;
}

.perfil-foto img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.perfil-texto h2 {
    margin-bottom: 0.5rem;
}

.titulo-profesional {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.datos-profesionales {
    color: #a8a096;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.enfoque-section {
    background-color: #f5f3f0;
}

.enfoque-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Tarifas */
.tarifas-section {
    background-color: white;
}

.tarifas-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    background-color: #f5f3f0;
}

.tarifas-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.tarifas-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tarifas-table tbody tr:hover {
    background-color: white;
}

.tarifas-info {
    background-color: #f5f3f0;
    padding: 2rem;
    border-radius: 6px;
}

.tarifas-info h3 {
    margin-bottom: 1.5rem;
}

.tarifas-info p {
    margin-bottom: 1rem;
}

/* Contacto */
.contacto-section {
    background-color: white;
}

.contacto-content {
    max-width: 700px;
    margin: 0 auto;
}

.contacto-info h2 {
    margin-bottom: 1rem;
}

.contacto-info > p {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.info-block {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: #f5f3f0;
    border-radius: 6px;
    text-align: center;
}

.info-block h3 {
    margin-bottom: 1.5rem;
}

.info-block a {
    display: inline-block;
}

.info-block-text {
    background-color: white;
    border: 1px solid var(--border-color);
    text-align: left;
}

.info-block-text h3 {
    margin-bottom: 1rem;
}

.info-block-text p {
    margin-bottom: 0;
}

.info-block-text a {
    color: var(--primary-color);
}

/* Legal sections */
.legal-section {
    background-color: white;
    max-width: 900px;
    margin: 0 auto;
}

.legal-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-col a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col li a {
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    opacity: 0.7;
    font-size: 0.85rem;
}

.whatsapp-flotante{
    position:fixed;
    bottom:20px;
    right:20px;
    width:60px;
    height:60px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 4px 12px rgba(37,211,102,.35);
    z-index:99999;
}

.whatsapp-flotante svg{
    width:34px;
    height:34px;
    display:block;
}

/* Utility */
.text-center {
    text-align: center;
}

.link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.link:hover {
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .perfil-content {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .perfil-foto img {
        width: 200px;
        height: 200px;
    }

    section {
        padding: 3rem 0;
    }

    .servicio-caja {
        padding: 2rem;
    }

    .tarifas-table {
        font-size: 0.9rem;
    }

    .tarifas-table th,
    .tarifas-table td {
        padding: 0.8rem;
    }

    .whatsapp-flotante {
        width: 52px;
        height: 52px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-flotante svg {
        width: 24px;
        height: 24px;
    }

    .caja-cta {
        text-align: center;
    }
}
