/* --- VARIABLES GLOBALES --- */
:root {
    --primary-color: #2b3a42;      /* Azul marino institucional */
    --secondary-color: #8c7355;    /* Tono bronce/dorado elegante */
    --accent-color: #1a252c;       /* Oscuro para textos principales */
    --light-bg: #f8f6f4;           /* Fondo beige muy suave */
    --white: #ffffff;
    --gray-light: #e6e2dd;
    --text-dark: #333333;
    --text-muted: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESETEO BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* --- ENCABEZADO --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-initials {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
}

.logo-text small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 550px;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 37, 44, 0.75), rgba(26, 37, 44, 0.85));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #735d43;
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* --- SOBRE MÍ / EL ESTUDIO --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.sobre-mi-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.matricula {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.sobre-mi-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.features-list li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--secondary-color);
}

.sobre-mi-img img {
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- ÁREAS DE PRÁCTICA --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title p {
    color: var(--text-muted);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    position: relative;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-end;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card:hover .card-bg {
    transform: scale(1.08);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.2) 80%);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: var(--white);
}

.card-tag {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    backdrop-filter: blur(2px);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- CONTACTO --- */
.contacto-info h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
}

.info-item i {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
}

.contacto-form-wrapper {
    background-color: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-light);
}

.contacto-form-wrapper h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 0.85rem;
}

.legal-text {
    opacity: 0.6;
    margin-top: 5px;
}

/* --- DISEÑO RESPONSIVO (MÓVILES Y TABLETS) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-menu.open {
        max-height: 300px;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
/* --- ESTILOS DE RESERVA DE CITAS --- */
.booking-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--gray-light);
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.time-slots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.slot-btn {
    padding: 10px 18px;
    border: 1px solid var(--gray-light);
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.slot-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.slot-btn.selected {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* --- ESTILOS DEL BLOG --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.read-more:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .grid-2-form {
        grid-template-columns: 1fr;
        gap: 0;
    }
}