/* ========== RESET & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fef7e8;
    color: #2d3e50;
    scroll-behavior: smooth;
}

:root {
    --primary: #2c5f8a;
    --primary-dark: #1e405e;
    --primary-light: #4a7c9c;
    --primary-glow: rgba(44, 95, 138, 0.12);
    --secondary: #e08e4a;
    --secondary-dark: #c9773e;
    --secondary-light: #f0b27a;
    --accent: #d97a3a;
    --warm-bg: #fef7e8;
    --warm-bg-alt: #fff4e6;
    --card-bg: #fffef9;
    --card-bg-alt: #fffcf5;
    --text-dark: #2d3e50;
    --text-muted: #7c6b5a;
    --border-light: #f5e8d9;
    --border-warm: #f0e0ce;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s ease;
}

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

/* ===== HEADER ===== */
.header {
    background: rgba(30, 42, 54, 0.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(224, 142, 74, 0.25);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5e8d9;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo a span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    font-weight: 500;
    color: #e8dfd0;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-menu li a:hover {
    color: var(--secondary-light);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #e8dfd0;
}

@media (max-width: 860px) {
    .hamburger {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background-color: rgba(30, 42, 54, 0.98);
        backdrop-filter: blur(12px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 999;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-container {
        padding: 0.8rem 1.5rem;
    }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, rgba(30, 42, 54, 0.88), rgba(30, 42, 54, 0.8)), 
                url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?auto=format&fit=crop&w=1920&q=85') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 850px;
    padding: 0 1.5rem;
    animation: fadeInUp 0.7s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content h1 span {
    color: var(--secondary-light);
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary {
    background: var(--secondary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 142, 74, 0.3);
}

/* ===== SERVICIOS ===== */
.services-section {
    padding: 5rem 0;
    background: var(--warm-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-warm);
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 48px;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.service-btn:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow: 0 6px 16px rgba(224, 142, 74, 0.15);
    background: var(--card-bg-alt);
}

/* subcategorias - ESPECIALIDADES */
.subcats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.subcat-card {
    background: var(--card-bg);
    padding: 0.8rem 1.6rem;
    border-radius: 48px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-warm);
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.subcat-card:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 6px 14px rgba(224, 142, 74, 0.12);
    background: var(--card-bg-alt);
}

.back-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 40px;
    font-weight: 500;
    margin-top: 1.8rem;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

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

.page-content {
    padding: 3rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.4s ease;
    min-height: 60vh;
    background: var(--warm-bg);
}

/* ===== ABOUT - QUIEN SOY ===== */
.about-section {
    padding: 5rem 0;
    background: var(--warm-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    height: 360px;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-muted);
    margin: 1rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TESTIMONIOS ===== */
.testimonials {
    background: var(--warm-bg);
    padding: 5rem 0;
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 1.8rem;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-warm);
    transition: all 0.25s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--secondary);
}

.testimonial-card p {
    font-style: italic;
    color: #7c6b5a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.client-name {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--secondary);
    font-size: 0.85rem;
}

/* ===== BLOG - TARJETAS ===== */
.blog-section {
    padding: 5rem 0;
    background: var(--warm-bg-alt);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    border: 1px solid var(--border-warm);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.blog-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-card h3 {
    font-size: 1.15rem;
    padding: 1rem 1rem 0.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.blog-meta {
    padding: 0.5rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    color: #a58e78;
    font-size: 0.8rem;
}

.blog-meta i {
    color: var(--secondary);
    margin-right: 0.3rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #1e2a36;
    color: #d4c8b8;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 1.8rem;
}

.footer h4 {
    color: #f0e5d4;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.footer a {
    color: #d4c8b8;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.footer a:hover {
    color: var(--secondary-light);
    transform: translateX(3px);
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.newsletter input {
    padding: 0.7rem 1rem;
    border-radius: 40px;
    border: none;
    flex: 1;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.08);
    color: #f0e5d4;
    font-size: 0.85rem;
}

.newsletter input::placeholder {
    color: #a58e78;
}

.newsletter button {
    background: var(--secondary);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
}

.newsletter button:hover {
    background: var(--secondary-dark);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icons i {
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    color: #d4c8b8;
}

.social-icons i:hover {
    color: var(--secondary-light);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    border-top: 1px solid #2e3e4a;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: #a58e78;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ===== WHATSAPP FLOTANTE ===== */
#whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}

#whatsapp-float a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

#whatsapp-float i {
    font-size: 28px;
    color: white;
}

@media (max-width: 680px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .service-btn {
        padding: 0.6rem 1.3rem;
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
}