/* ========================================
   Acceso Digital MX - Professional Stylesheet
   Modern, Responsive, Clean Design
   ======================================== */

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

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --accent-color: #34C759;
    --dark-color: #1C1C1E;
    --light-color: #F2F2F7;
    --text-color: #1D1D1F;
    --text-light: #6E6E73;
    --border-color: #D1D1D6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.logo-text {
    font-size: 18px;
}

/* === NAVIGATION === */
.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    pointer-events: none;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.9), rgba(88, 86, 214, 0.8));
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 0;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: #0051D5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-light {
    background: #fff;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--light-color);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* === SECTIONS === */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

/* === SERVICES === */
.services {
    background: var(--light-color);
}

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* === ABOUT PREVIEW === */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-preview-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.benefits-list {
    margin: 30px 0;
}

.benefits-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-color);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 20px;
    pointer-events: none;
}

.about-preview-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* === STATS === */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* === CTA === */
.cta {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* === MISSION === */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.mission-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.mission-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* === VALUES === */
.values {
    background: var(--light-color);
}

.values h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.value-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--secondary-color);
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.value-card p {
    color: var(--text-light);
}

/* === TEAM === */
.team h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.team-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

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

.team-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.team-image img {
    width: 100%;
    transition: var(--transition);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-member h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.team-member p {
    color: var(--text-light);
    font-size: 15px;
}

/* === PROCESS === */
.process {
    background: var(--light-color);
}

.process h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.process-step p {
    color: var(--text-light);
    font-size: 15px;
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.contact-form-wrapper p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* === FORM STYLES === */
.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* === CONTACT INFO === */
.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-detail h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.contact-detail p,
.contact-detail a {
    color: var(--text-light);
    font-size: 15px;
}

.contact-detail a:hover {
    color: var(--primary-color);
}

.contact-cta {
    background: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.contact-cta h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.contact-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* === MAP === */
.map-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* === FAQ === */
.faq-section {
    background: var(--light-color);
}

.faq-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* === BLOG === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.blog-content h2 a {
    color: var(--dark-color);
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-read-more:hover {
    color: var(--secondary-color);
}

/* === ARTICLE PAGE === */
.article-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.article-date,
.article-reading-time {
    color: var(--text-light);
    font-size: 14px;
}

.article-header h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.article-author strong {
    display: block;
    color: var(--dark-color);
}

.article-author span {
    color: var(--text-light);
    font-size: 14px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-lead {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.article-content h3 {
    font-size: 26px;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    margin: 20px 0 20px 30px;
}

.article-content ul li {
    list-style: disc;
    margin-bottom: 10px;
    color: var(--text-light);
}

.article-content strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* === RELATED ARTICLES === */
.related-articles {
    max-width: 800px;
    margin: 60px auto 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

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

.related-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h4 {
    padding: 20px;
    font-size: 18px;
    color: var(--dark-color);
}

.article-cta {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--light-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.article-cta h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-cta p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* === LEGAL CONTENT === */
.legal-content {
    padding: 60px 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-text h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.legal-text h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.legal-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.legal-text ul {
    margin: 20px 0 20px 40px;
}

.legal-text ul li {
    list-style: disc;
    margin-bottom: 12px;
    color: var(--text-light);
}

.legal-text strong {
    color: var(--dark-color);
}

/* === FOOTER === */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: #fff;
}

.contact-info li {
    color: rgba(255, 255, 255, 0.7);
}

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

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    color: var(--text-color);
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow);
        padding: 20px;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-lead {
        font-size: 18px;
    }

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

    .about-preview-grid,
    .mission-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header h2,
    .page-hero h1 {
        font-size: 32px;
    }

    .services-grid,
    .values-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .btn {
        padding: 12px 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
