/* ============================================
   ESTILOS GENERALES - CERTIFICADOS ONLINE
   Diseño profesional tipo gestoría administrativa
   ============================================ */

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c3e50;
    --color-primary-dark: #1a252f;
    --color-primary-light: #34495e;
    --color-secondary: #7f8c8d;
    --color-accent: #27ae60;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-bg: #ffffff;
    --color-bg-light: #f5f6fa;
    --color-bg-dark: #ecf0f1;
    --color-border: #bdc3c7;
    --color-error: #e74c3c;
    --color-success: #27ae60;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevenir zoom automático en iOS al enfocar inputs */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   DISCLAIMER BANNER
   ============================================ */

.disclaimer-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1001;
    line-height: 1.6;
}

.disclaimer-banner .container {
    padding: 0 15px;
}

.disclaimer-banner p {
    margin: 0;
    line-height: 1.6;
}

.disclaimer-banner strong {
    font-weight: 700;
}

/* ============================================
   AVISO LEGAL FORM
   ============================================ */

.aviso-legal-form {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.aviso-legal-form p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header.sticky-with-disclaimer {
    top: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    border-bottom: 2px solid white;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #4cae4c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #3a7a8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    min-height: 56px;
    width: 100%;
    max-width: 400px;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SERVICIOS
   ============================================ */

.servicios {
    background-color: var(--color-bg-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servicio-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.servicio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servicio-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.servicio-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   PRECIOS
   ============================================ */

.precios {
    background-color: white;
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.precio-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.precio-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.precio-card.destacado {
    border-color: var(--color-accent);
    border-width: 3px;
    transform: scale(1.05);
}

.precio-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.precio-card h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.precio-tiempo {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.precio-monto {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.precio-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.precio-features li {
    padding: 0.5rem 0;
    color: var(--color-text);
}

/* ============================================
   SEGURIDAD
   ============================================ */

.seguridad {
    background-color: var(--color-bg-light);
}

.seguridad-content {
    max-width: 900px;
    margin: 0 auto;
}

.importante {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.confianza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.confianza-item {
    text-align: center;
}

.confianza-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.confianza-item h4 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.confianza-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    background-color: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-light);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.faq-question {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   TRAMITES PAGE
   ============================================ */

.main-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

.selection-section {
    margin-bottom: 3rem;
}

.certificados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.certificado-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    touch-action: manipulation;
}

.certificado-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.certificado-card.selected {
    border-color: var(--color-accent);
    background-color: #f0f9f0;
}

.certificado-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.certificado-card h3 {
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.certificado-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.modalidad-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modalidad-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.modalidad-card.selected {
    border-color: var(--color-accent);
    background-color: #f0f9f0;
}

.modalidad-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.modalidad-tiempo {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.modalidad-precio {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.resumen-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--color-bg-light);
    border-radius: 8px;
}

.resumen-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-item strong {
    color: var(--color-primary);
}

.action-section {
    text-align: center;
    margin-top: 3rem;
}

.error-message {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* ============================================
   FORMULARIO REGISTRO
   ============================================ */

.resumen-previo {
    background-color: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-primary);
}

.resumen-previo h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.resumen-previo-content p {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.formulario-registro {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--color-error);
}

.form-help {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.checkbox-group {
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .disclaimer-banner {
        font-size: 0.85rem;
        padding: 0.875rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
    }

    .nav {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    .servicios-grid,
    .precios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .precio-card.destacado {
        transform: none;
    }

    .certificados-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .modalidades-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .confianza-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .formulario-registro {
        padding: 1.5rem;
        margin: 0 10px;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 1rem;
        min-height: 52px;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .checkbox-label {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .btn-large {
        width: 100%;
        padding: 1.25rem;
        font-size: 1.1rem;
    }

    .aviso-legal-form {
        margin: 0 10px 1.5rem;
        padding: 1rem;
        font-size: 0.85rem;
    }

    .resumen-previo {
        margin: 0 10px 1.5rem;
        padding: 1.25rem;
    }

    .page-header {
        padding: 0 10px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .selection-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .disclaimer-banner {
        font-size: 0.8rem;
        padding: 0.75rem 0;
    }

    .disclaimer-banner p {
        padding: 0 10px;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .btn-large {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
        width: 100%;
    }

    .formulario-registro {
        padding: 1.25rem;
        margin: 0 5px;
        border-radius: 8px;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 1.1rem;
        min-height: 54px;
    }

    .certificados-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .certificado-card {
        padding: 1.25rem 0.75rem;
    }

    .certificado-card h3 {
        font-size: 1rem;
    }

    .modalidad-card {
        padding: 1.5rem;
    }

    .precio-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }

    .footer-disclaimer {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}


