/* ===========================================
   styles.css - Lic. Luis Raúl Hernández Corona
   Contador Público Certificado
   Diseño: Profesional, Confiable, Seguro
   =========================================== */

/* ===========================================
   1. RESET Y CONFIGURACIONES BASE
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===========================================
       PALETA DE COLORES CORPORATIVA
       Transmite confianza, estabilidad y profesionalismo
       =========================================== */
    --primary-dark: #003366;     /* Azul marino - Confianza */
    --primary: #0066CC;          /* Azul principal - Profesionalismo */
    --primary-light: #4D94FF;    /* Azul claro - Enfoque moderno */
    --secondary: #28A745;        /* Verde - Éxito financiero */
    --secondary-light: #5CD85A;  /* Verde claro - Crecimiento */
    --accent: #FF6B35;           /* Naranja - Energía, llamados a la acción */
    --dark: #333333;             /* Texto principal */
    --gray-dark: #666666;        /* Texto secundario */
    --gray: #999999;             /* Texto terciario */
    --gray-light: #E0E0E0;       /* Bordes */
    --light: #F8F9FA;            /* Fondos claros */
    --white: #FFFFFF;            /* Blanco puro */
    
    /* ===========================================
       SOMBRAS Y EFECTOS
       =========================================== */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* ===========================================
       TIPOGRAFÍA
       =========================================== */
    --font-heading: 'Montserrat', 'Open Sans', sans-serif;
    --font-body: 'Lato', 'Roboto', sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    /* ===========================================
       ESPACIADO Y TAMAÑOS
       =========================================== */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ===========================================
   2. TIPOGRAFÍA Y TEXTO
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.2rem;
}

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

a:hover {
    color: var(--primary-dark);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-primary-dark { color: var(--primary-dark); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-dark); }

/* ===========================================
   3. BOTONES Y LLAMADOS A LA ACCIÓN
   =========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -2;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: #218838;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

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

/* ===========================================
   4. COMPONENTES DE CONFIANZA Y SEGURIDAD
   =========================================== */
/* Badge de certificación */
.certification-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    margin: 5px;
}

.certification-badge i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Tarjeta de certificación */
.certification-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    height: 100%;
}

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

/* Sello de confianza */
.trust-badge {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--light);
    border: 1px solid var(--gray-light);
}

.trust-badge i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ===========================================
   5. HEADER Y NAVEGACIÓN
   Transmite profesionalismo inmediato
   =========================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

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

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    margin-left: 15px;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-title {
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 25px;
    position: relative;
}

.nav-link {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 30px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ===========================================
   6. SECCIÓN HERO
   Primera impresión - Transmite seguridad y expertise
   =========================================== */
.hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 100px;
    margin-top: 80px; /* Compensa el header fijo */
}

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

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title::after {
    display: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

/* ===========================================
   7. SECCIÓN DE SERVICIOS
   Muestra expertise y profesionalismo
   =========================================== */
.services {
    padding: 100px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

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

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ===========================================
   8. SECCIÓN DE CERTIFICACIONES
   Valida la experiencia y credibilidad
   =========================================== */
.certifications {
    padding: 100px 0;
    background-color: var(--white);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

/* ===========================================
   9. TESTIMONIOS
   Construye confianza social
   =========================================== */
.testimonials {
    padding: 100px 0;
    background-color: var(--light);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 0 15px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
    padding-left: 30px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-light);
    font-family: var(--font-accent);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* ===========================================
   10. SECCIÓN DE ARTÍCULOS/RECURSOS
   Demuestra expertise y conocimiento actualizado
   =========================================== */
.articles {
    padding: 100px 0;
    background-color: var(--white);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

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

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ===========================================
   11. SECCIÓN MULTIMEDIA (PODCAST/VIDEOCAST)
   =========================================== */
.media {
    padding: 100px 0;
    background-color: var(--light);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.media-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-card:hover .media-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.media-card:hover .play-button {
    background-color: var(--primary);
    color: var(--white);
}

.media-content {
    padding: 20px;
}

.media-type {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.media-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ===========================================
   12. SECCIÓN DE CONTACTO
   Facilita la conversión
   =========================================== */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.privacy-notice {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 20px;
}

.privacy-notice a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===========================================
   13. FOOTER
   Completa la imagen profesional
   =========================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-col h3::after {
    background-color: var(--primary-light);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===========================================
   14. COMPONENTES ESPECIALES
   =========================================== */
/* Modal de confianza */
.trust-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.trust-modal-content {
    background-color: var(--white);
    max-width: 500px;
    width: 90%;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

/* Indicadores de seguridad */
.security-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

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

.security-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

/* ===========================================
   15. RESPONSIVIDAD
   =========================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.5rem; }
    .container { padding: 0 30px; }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 0;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .service-grid,
    .certification-grid,
    .article-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-width: 100%;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero-title { font-size: 2rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===========================================
   16. ANIMACIONES Y EFECTOS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Efecto de flotación para elementos de confianza */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===========================================
   17. ESTADOS Y UTILIDADES
   =========================================== */
.hidden { display: none; }
.visible { display: block; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

/* ===========================================
   18. ESTILOS PARA IMPRESIÓN
   =========================================== */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-menu-btn,
    .hero-cta,
    .contact-form,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero {
        background: none !important;
        color: #000;
        padding: 20px 0;
        margin-top: 0;
    }
    
    .hero-title {
        color: #000;
    }
    
    .section-title h2::after {
        display: none;
    }
    
    .service-card,
    .article-card,
    .certification-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}