* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #046b99;
    --secondary-blue: #205493;
    --dark-blue: #112e51;
    --light-blue: #e1f3f8;
    --accent-gold: #fdb81e;
    --success-green: #00a91c;
    --text-dark: #212121;
    --text-gray: #5b616b;
    --border-gray: #d6d7d9;
    --bg-light: #f1f1f1;
    --white: #ffffff;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Government Banner */
.gov-banner {
    background-color: var(--bg-light);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-gray);
}

.gov-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-banner-flag {
    width: 20px;
    height: 14px;
    background: linear-gradient(to bottom, 
        #b22234 0%, #b22234 7.69%, 
        #fff 7.69%, #fff 15.38%,
        #b22234 15.38%, #b22234 23.07%,
        #fff 23.07%, #fff 30.76%,
        #b22234 30.76%, #b22234 38.45%,
        #fff 38.45%, #fff 46.14%,
        #b22234 46.14%, #b22234 53.83%,
        #fff 53.83%, #fff 100%);
    position: relative;
}

.gov-banner-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.85%;
    background: #3c3b6e;
}

/* Header Top Bar */
.header-top {
    background-color: var(--dark-blue);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.header-top-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
}

.header-top-links a:hover { text-decoration: underline; }

/* Main Header */
header {
    background-color: white;
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dmv-seal {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
}

.dmv-seal::before {
    content: 'DMV';
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.dmv-seal::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.logo-text h1 {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.2;
}

.logo-text .subtitle {
    font-size: clamp(12px, 2vw, 14px);
    color: var(--text-gray);
    font-weight: 500;
}

.credential-badge {
    background: var(--success-green);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.header-contact { text-align: right; }

.contact-number {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Alert Bar */
.alert-bar {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
}

.alert-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-bar p {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 70px 20px;
}

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

.hero-content { max-width: 900px; }

.hero h2 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.7;
}

.credentials-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 35px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credential-icon { font-size: 32px; }
.credential-text { font-size: 14px; font-weight: 600; }

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

.btn-primary {
    padding: 16px 36px;
    background: var(--accent-gold);
    color: var(--dark-blue);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: #e6a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    padding: 16px 36px;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid white;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Stats */
.stats {
    background: var(--dark-blue);
    color: white;
    padding: 50px 20px;
}

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

.stat-item { padding: 20px; }

.stat-number {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

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

/* Trust Badges */
.trust-badges {
    background: white;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-gray);
}

.badges-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.badge-icon { font-size: 24px; }

/* Services */
.services {
    padding: 70px 20px;
    background: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 35px;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(4, 107, 153, 0.15);
    transform: translateY(-5px);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-blue);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    flex-shrink: 0;
}

.service-title h3 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.service-title .service-badge {
    background: var(--success-green);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--bg-light);
    font-size: 15px;
}

.service-features li:last-child { border-bottom: none; }

.service-features li::before {
    content: '✓';
    color: var(--success-green);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
    flex-wrap: wrap;
    gap: 15px;
}

.service-price {
    font-size: clamp(24px, 4vw, 28px);
    font-weight: 700;
    color: var(--primary-blue);
}

.service-price small {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   EXAMEN DMV CALIFORNIA
   ============================================ */

.exam-section {
    padding: 70px 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    border-top: 4px solid var(--primary-blue);
}

.exam-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.exam-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(4, 107, 153, 0.15);
    overflow: hidden;
    border: 2px solid var(--light-blue);
}

.exam-screen { padding: 40px; }

/* Pantalla de inicio */
.exam-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.exam-intro-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.exam-intro h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.exam-intro p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.exam-rules {
    background: var(--light-blue);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.exam-rule {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(4, 107, 153, 0.1);
}

.exam-rule:last-child { border-bottom: none; }

.rule-icon {
    color: var(--success-green);
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

/* Barra de progreso */
.exam-progress-bar-container {
    background: var(--dark-blue);
    padding: 20px 40px;
}

.exam-progress-info {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.exam-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.exam-progress-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Tarjeta de pregunta */
.question-card {
    padding: 40px;
    position: relative;
}

.question-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.question-text {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 30px;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    transform: translateX(4px);
}

.option-btn .option-letter {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-btn.correct {
    border-color: var(--success-green);
    background: #f0fff4;
    color: #155724;
}

.option-btn.correct .option-letter {
    background: var(--success-green);
    color: white;
}

.option-btn.incorrect {
    border-color: #dc3545;
    background: #fff5f5;
    color: #721c24;
}

.option-btn.incorrect .option-letter {
    background: #dc3545;
    color: white;
}

.option-btn.show-correct {
    border-color: var(--success-green);
    background: #f0fff4;
    opacity: 0.7;
}

.option-btn:disabled { cursor: default; }

/* Feedback de respuesta */
.answer-feedback {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.answer-feedback.correct-feedback {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.answer-feedback.incorrect-feedback {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.next-btn {
    margin-top: 20px;
    width: 100%;
    font-size: 17px;
}

/* Resultados */
.results-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.results-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.results-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.results-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.results-message {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.results-breakdown {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BENEFITS, PROCESS, FAQ - Same as before
   ============================================ */

.benefits {
    padding: 70px 20px;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.benefit-card h3 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: var(--dark-blue);
}

.benefit-card p { color: var(--text-gray); line-height: 1.7; }

.process {
    padding: 70px 20px;
    background: white;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: var(--light-blue);
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(4, 107, 153, 0.3);
    z-index: 1;
}

.step-content { flex: 1; padding-top: 10px; }

.step-content h3 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 16px;
}

.faq {
    padding: 70px 20px;
    background: var(--bg-light);
}

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

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 2px solid var(--border-gray);
    transition: all 0.3s;
}

.faq-item:hover { border-color: var(--primary-blue); }

.faq-question {
    padding: 25px;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
}

.faq-question:hover { background: var(--bg-light); }

.faq-answer {
    padding: 0 25px 25px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 16px;
}

/* Testimonials */
.testimonials {
    padding: 70px 20px;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    transition: all 0.3s;
}

.testimonial:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.testimonial-stars { color: var(--accent-gold); font-size: 20px; }

.verified-badge {
    background: var(--success-green);
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.testimonial p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 15px;
}

.testimonial-location {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 3px;
}

/* Testimonial Form */
.testimonial-form-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 3px solid var(--border-gray);
}

.testimonial-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.testimonial-form .form-group { margin-bottom: 20px; }

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

.testimonial-form input[type="text"],
.testimonial-form input[type="email"],
.testimonial-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 107, 153, 0.1);
}

.testimonial-form textarea {
    resize: vertical;
    min-height: 120px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 40px;
}

.star-rating input[type="radio"] { display: none; }

.star-rating label {
    cursor: pointer;
    color: var(--border-gray);
    transition: color 0.2s;
    margin-bottom: 0;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--accent-gold); }

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-container span {
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.4;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Contact */
.contact {
    padding: 70px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.contact .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
}

.contact > p {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 50px;
    opacity: 0.95;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 25px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.contact-card-icon { font-size: 50px; margin-bottom: 15px; }

.contact-card h3 {
    font-size: clamp(18px, 3vw, 22px);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-card p {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    word-break: break-word;
}

.contact-card a:hover { text-decoration: underline; }

/* Footer */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 12px; }

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-badge {
    background: var(--success-green);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 5px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   MODAL CON PASOS Y CALENDARIO
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    background: var(--primary-blue);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body { padding: 30px; }

/* Indicador de pasos */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 0;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-gray);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.step-dot.active {
    background: var(--primary-blue);
    color: white;
}

.step-dot.completed {
    background: var(--success-green);
    color: white;
}

.step-line {
    height: 3px;
    width: 60px;
    background: var(--border-gray);
    transition: all 0.3s;
}

.step-line.active {
    background: var(--success-green);
}

.step-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Form groups en modal */
.request-form .form-group { margin-bottom: 18px; }

.request-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

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

.request-form input[type="text"],
.request-form input[type="email"],
.request-form input[type="tel"],
.request-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.request-form input:focus,
.request-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 107, 153, 0.1);
}

.request-form input::placeholder,
.request-form textarea::placeholder { color: #999; }

.request-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* ============================================
   CALENDARIO DE CITAS
   ============================================ */

.appointment-section { margin-bottom: 25px; }

.appointment-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.calendar-container {
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    background: var(--dark-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h4 {
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
}

.cal-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav-btn:hover { background: rgba(255,255,255,0.35); }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--light-blue);
}

.calendar-weekdays span {
    text-align: center;
    padding: 10px 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-blue);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
    background: var(--bg-light);
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    border: 2px solid transparent;
    transition: all 0.2s;
    min-height: 38px;
}

.cal-day:hover:not(.disabled):not(.empty) {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.cal-day.disabled, .cal-day.empty {
    color: #ccc;
    cursor: default;
    background: transparent;
}

.cal-day.today {
    border-color: var(--accent-gold);
    font-weight: 700;
}

.cal-day.selected {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.cal-day.past {
    color: #ccc;
    cursor: not-allowed;
    background: transparent;
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 12px 8px;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: var(--text-dark);
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    color: var(--primary-blue);
}

.time-slot.selected {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Resumen de cita seleccionada */
.selected-appointment-preview {
    background: #f0fff4;
    border: 2px solid var(--success-green);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.appointment-preview-icon { font-size: 24px; }

/* Confirmación */
.confirmation-summary {
    background: var(--light-blue);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(4, 107, 153, 0.15);
    font-size: 14px;
}

.confirmation-row:last-child { border-bottom: none; }

.confirmation-label {
    color: var(--text-gray);
    font-weight: 500;
}

.confirmation-value {
    color: var(--dark-blue);
    font-weight: 700;
    text-align: right;
}

/* Aviso de depósito */
.deposit-notice {
    background: #fff8e1;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--dark-blue);
}

.deposit-icon { font-size: 24px; flex-shrink: 0; }

/* Success animation */
.success-animation {
    text-align: center;
    padding: 40px 20px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success-green);
}

.icon-line {
    height: 5px;
    background-color: var(--success-green);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, 0.5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: white;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.success-animation h3 {
    color: var(--success-green);
    font-size: 28px;
    margin-bottom: 10px;
}

.success-animation p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Autocomplete */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.address-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-gray);
    transition: all 0.2s;
}

.address-suggestion-item:last-child { border-bottom: none; }

.address-suggestion-item:hover { background-color: var(--light-blue); }

.suggestion-main {
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main { text-align: center; }
    .logo-section { flex-direction: column; text-align: center; }
    .header-contact { text-align: center; width: 100%; }
    .contact-number { justify-content: center; }
    .header-top .container { flex-direction: column; text-align: center; }
    .header-top-links { justify-content: center; }
    .process-timeline::before { display: none; }
    .alert-bar .container { flex-direction: column; text-align: center; }
    .testimonial-form-container { padding: 25px 20px; }
    .testimonial-form .form-row { grid-template-columns: 1fr; }
    .star-rating { font-size: 35px; }
    .modal-container { width: 95%; margin: 10px; }
    .modal-header { padding: 20px; }
    .modal-body { padding: 20px; }
    .request-form .form-row { grid-template-columns: 1fr; }
    .exam-screen { padding: 25px 20px; }
    .question-card { padding: 25px 20px; }
    .time-slots { grid-template-columns: repeat(3, 1fr); }
    .results-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .cta-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
    .service-footer { flex-direction: column; text-align: center; }
    .service-footer .btn-primary { width: 100%; }
    .time-slots { grid-template-columns: repeat(2, 1fr); }
    .step-line { width: 40px; }
}

@media print {
    header { position: relative; }
    .no-print { display: none; }
}

/* ============================================
   BOTÓN ELIMINAR TESTIMONIO (solo visible para admin)
   ============================================ */
.delete-testimonial-btn {
    margin-top: 12px;
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.delete-testimonial-btn:hover {
    background: #dc3545;
    color: white;
}