/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --primary-color: #0f172a;   /* Azul Marino Oscuro */
    --secondary-color: #1e3a8a; /* Azul Eléctrico */
    --accent-cyan: #06b6d4;    /* Celeste de Acento */
    --accent-gold: #c5a880;    /* Dorado Elegante para CTA */
    --text-dark: #334155;      /* Gris Oscuro para texto */
    --text-light: #64748b;     /* Gris Claro */
    --bg-light: #f8fafc;       /* Fondo General */
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ==========================================================================
   COMPONENTES REUTILIZABLES (BOTONES, TÍTULOS)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

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

.btn-gold:hover {
    background-color: #b3956b;
}

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

.btn-block {
    display: block;
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ==========================================================================
   ESTRUCTURA DEL SITIO (HEADER, HERO, SECCIONES)
   ========================================================================== */
.top-alert {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    display: flex;
    flex-direction: column;
}

.logo-bold { font-weight: 900; font-size: 24px; color: var(--primary-color); line-height: 1; }
.logo-light { font-weight: 400; font-size: 24px; color: var(--accent-cyan); line-height: 1; }
.logo small { font-weight: 700; letter-spacing: 3px; color: var(--text-light); font-size: 10px; }

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    margin: 0 15px;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 42px;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

.hero-form-box {
    background-color: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent-cyan);
}

.hero-form-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.appointment-form input, .appointment-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
}

/* Sobre Nosotros */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-item {
    background-color: var(--bg-light);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-family: var(--font-heading);
    margin-bottom: 5px;
    font-size: 14px;
}

.feature-item p {
    font-size: 11px;
    color: var(--text-light);
}

/* Servicios */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-icon.cyan { background-color: #ecfeff; }
.service-icon.yellow { background-color: #fef3c7; }
.service-icon.blue { background-color: #eff6ff; }

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Antes / Después & Blog */
.results-blog-section {
    padding: 80px 0;
    background-color: var(--white);
}

.double-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.cases-container, .blog-container {
    margin-top: 30px;
}

.case-box {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 16px;
}

.case-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.img-placeholder {
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.img-placeholder.before { background-color: #fee2e2; color: #ef4444; }
.img-placeholder.after { background-color: #dcfce7; color: #10b981; }

.blog-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.blog-card h4 { font-family: var(--font-heading); margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.read-more { color: var(--secondary-color); text-decoration: none; font-weight: bold; font-size: 14px; }

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 60px 0 20px;
}

.logo-white .logo-bold { color: var(--white); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-about p { margin-top: 15px; font-size: 14px; }
.footer-links h4, .footer-contact h4 { color: var(--white); font-family: var(--font-heading); margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #94a3b8; text-decoration: none; font-size: 14px; }
.footer-links ul li a:hover { color: var(--accent-cyan); }
.footer-contact p { font-size: 14px; margin-bottom: 10px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLÉTS Y MÓVILES)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .about-grid, .double-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav { display: none; } /* Ideal para implementar menú hamburguesa */
    .services-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 32px; }
}