/* ============================================
   Dr. Adrián Velasco Ramos - Medicina Estética
   Diseño Profesional Médico
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variables CSS */
:root {
    --color-primary: #1a365d;
    --color-primary-dark: #0f2340;
    --color-secondary: #2c5282;
    --color-accent: #c9a962;
    --color-accent-light: #e2c992;
    --color-text: #2d3748;
    --color-text-light: #4a5568;
    --color-bg: #ffffff;
    --color-bg-alt: #f7fafc;
    --color-bg-dark: #edf2f7;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Reset y Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.logo-text {
    color: white;
}

.logo-text .name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
}

.logo-text .specialty {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.85;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navegación */
.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav a:hover {
    color: white;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 98, 0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent-light);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
}

.doctor-frame {
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.doctor-placeholder {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg-dark) 100%);
    border-radius: 15px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-primary);
}

.doctor-placeholder .icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.credentials {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.credential {
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid var(--color-bg-dark);
}

.credential:last-child {
    border-right: none;
}

.credential-icon {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.credential span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Secciones */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--color-bg-alt);
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Cards de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.service-card-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 2rem;
    color: white;
}

.service-card-header h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.service-card-header p {
    opacity: 0.85;
    font-size: 0.95rem;
    margin: 0;
}

.service-card-body {
    padding: 2rem;
}

.service-card-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.read-more:hover {
    color: var(--color-accent);
    gap: 0.75rem;
}

/* Artículos */
.article-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 10rem 2rem 4rem;
    color: white;
    text-align: center;
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-hero h1 {
    color: white;
    max-width: 900px;
    margin: 0 auto 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contenido del artículo */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.article-content h2 {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-dark);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    margin-top: 2rem;
    color: var(--color-secondary);
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-dark) 100%);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

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

.recommendation-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
}

.recommendation-box h3 {
    color: var(--color-accent-light);
    margin-bottom: 1rem;
}

.recommendation-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.recommendation-box a {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.recommendation-box a:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

/* Author Box */
.author-box {
    background: var(--color-bg-alt);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer h4 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--color-bg-alt);
    padding: 1rem 2rem;
    margin-top: 95px;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb span {
    color: var(--color-text-light);
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .credentials {
        flex-direction: column;
        gap: 1rem;
    }
    
    .credential {
        border-right: none;
        border-bottom: 1px solid var(--color-bg-dark);
        padding: 0.5rem 0;
    }
    
    .credential:last-child {
        border-bottom: none;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
