/* ========== DM BAVA ESTUDIO CONTABLE - ESTILOS PRINCIPALES ========== */

/* Variables de color - Paleta Rosado Pastel Profesional */
:root {
    --primary: #D4919F;           /* Rosado principal - profesional y cálido */
    --primary-dark: #B47283;      /* Rosado oscuro para hover */
    --secondary: #E8B4C8;         /* Rosado pastel suave */
    --accent: #8B5A7A;            /* Morado-rosado para detalles */
    --dark: #3D2E35;              /* Gris oscuro con tinte rosado */
    --text: #4A3642;              /* Color de texto principal */
    --light: #FFF5F9;             /* Fondo rosado muy suave */
    --white: #FFFFFF;
    --gray: #F8F9FA;
    --border: #E8D4DC;            /* Borde suave rosado */
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

section {
    position: relative;
}

/* ========== NAVBAR ========== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--white) !important;
    box-shadow: 0 2px 20px rgba(212, 145, 159, 0.1);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 145, 159, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 145, 159, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 145, 159, 0.3);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, #FFF5F9 0%, #FFE8F0 50%, #FFF5F9 100%);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 145, 159, 0.3);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 180, 200, 0.3), rgba(139, 90, 122, 0.2));
    animation: float 6s ease-in-out infinite;
}

.illustration-icon {
    position: relative;
    font-size: 12rem;
    color: var(--primary);
    opacity: 0.8;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background-color: var(--light);
    padding: 5rem 0;
}

.section-badge {
    display: inline-block;
    background-color: rgba(212, 145, 159, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(212, 145, 159, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 145, 159, 0.2);
    border-color: var(--secondary);
}

.service-card-featured {
    position: relative;
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF5F9 0%, var(--white) 100%);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(212, 145, 159, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(212, 145, 159, 0.3);
}

/* Clients Type Cards */
.clients-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
}

.clients-subtitle {
    font-size: 1.1rem;
    color: var(--text);
}

.client-type-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid var(--border);
}

.client-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 145, 159, 0.15);
    border-color: var(--primary);
}

.client-type-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.client-type-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.client-type-card p {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 15px 40px rgba(212, 145, 159, 0.3);
}

.about-image-placeholder i {
    font-size: 8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.about-image-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.experience-highlight {
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

.experience-icon {
    flex-shrink: 0;
}

.experience-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.experience-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.experience-content p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* Recorrido Profesional - Timeline */
.journey-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 2.5rem;
}

.professional-timeline {
    position: relative;
    padding: 2rem 0 2rem 2.5rem;
    margin: 2rem 0;
}

/* Línea vertical del timeline */
.professional-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    animation: fadeInLeft 0.6s ease-out;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Marcador circular en el timeline */
.timeline-marker {
    position: absolute;
    left: -2.8rem;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(212, 145, 159, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(212, 145, 159, 0.3);
}

.timeline-content {
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timeline-item:hover .timeline-content {
    background: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(212, 145, 159, 0.15);
    transform: translateX(5px);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.timeline-company {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0.75rem 0 0.5rem 0;
}

.timeline-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

/* Destacados */
.experience-highlights {
    margin-top: 2rem;
}

.highlight-card {
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.highlight-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(212, 145, 159, 0.2);
    transform: translateY(-5px);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.highlight-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

/* Animación */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: linear-gradient(135deg, #FFF5F9 0%, var(--white) 100%);
    padding: 5rem 0;
}

.contact-info {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(212, 145, 159, 0.15);
    border: 2px solid var(--border);
}

.contact-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-details a,
.contact-details p {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
}

.contact-details a {
    color: var(--primary);
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(212, 145, 159, 0.15);
    border: 2px solid var(--border);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 145, 159, 0.15);
}

#formMessage {
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
}

#formMessage.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    color: #155724;
}

#formMessage.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    color: #721c24;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: var(--white);
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand .brand-text {
    color: var(--white);
}

.footer-brand .brand-subtitle {
    color: var(--secondary);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-illustration {
        height: 300px;
    }

    .illustration-circle {
        width: 250px;
        height: 250px;
    }

    .illustration-icon {
        font-size: 8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-image-placeholder {
        height: 400px;
        margin-bottom: 2rem;
    }

    .experience-highlight {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .contact-info {
        margin-bottom: 2rem;
    }
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* ========== ANIMACIONES ========== */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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