/*
Theme Name: Tasador de Propiedades
Description: Tema personalizado para tasador de propiedades online
Version: 1.0
Author: Tu Nombre
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Overlay - oculto por defecto en desktop */
.nav-overlay {
    display: none;
}

/* Hamburguesa - oculto en desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e40af;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    text-decoration: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #1e40af;
}

/* Responsive para el menú */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 15px rgba(0,0,0,0.1);
        padding: 70px 1.5rem 1.5rem;
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    
    .main-navigation.nav-open {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        white-space: normal;
        text-align: left;
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    /* Overlay cuando el menú está abierto */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.visible {
        display: block !important;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .site-logo {
        height: 35px;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(30, 64, 175, 0.7), rgba(59, 130, 246, 0.7)), 
                url('images/header_tasador.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulario del Tasador */
.tasador-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    margin: -2rem auto 4rem;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.radio-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-option:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-option span {
    font-weight: 500;
    color: #374151;
    user-select: none;
}

.checkbox-option input[type="checkbox"]:checked + span {
    color: #1e40af;
    font-weight: 600;
}

/* Barrio Display */
.barrio-display {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.barrio-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.barrio-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.barrio-text strong {
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Campo con error */
.field-error {
    border: 2px solid #ef4444 !important;
    border-radius: 8px;
    padding: 0.5rem;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.property-type-grid.field-error {
    padding: 1rem;
    background-color: #fef2f2;
}

.toggle-selector.field-error {
    background-color: #fef2f2;
    padding: 0.5rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Resultado */
.resultado-container {
    text-align: center;
    padding: 2rem;
    background: #f0f9ff;
    border-radius: 12px;
    border: 2px solid #0ea5e9;
    margin: 2rem 0;
}

.precio-estimado {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.rango-precio {
    font-size: 1.125rem;
    color: #0369a1;
    margin-bottom: 1rem;
}

.mensaje-resultado {
    font-size: 1.125rem;
    color: #0c4a6e;
    margin-bottom: 1.5rem;
}

/* Información del cálculo */
.info-calculo {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.info-calculo h4 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-calculo ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #4b5563;
}

.info-calculo li {
    margin-bottom: 0.25rem;
}

.info-calculo p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tasacion-profesional {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.tasacion-profesional p {
    margin-bottom: 0.75rem;
    color: #0c4a6e;
}

.btn-tasacion-profesional {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0ea5e9;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tasacion-profesional:hover {
    background: #0284c7;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.email-icon {
    font-size: 1.2rem;
}

/* Compartir tasación */
.compartir-tasacion {
    background: #f0fdf4;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.compartir-tasacion p {
    margin-bottom: 0.75rem;
    color: #064e3b;
}

.compartir-tasacion p:first-child {
    font-weight: 600;
}

.btn-compartir {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-compartir:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.share-icon {
    font-size: 1.2rem;
}

.link-generado {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1rem;
}

.link-generado label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.link-input-container {
    display: flex;
    gap: 0.5rem;
}

.link-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f9fafb;
}

.btn-copiar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #6b7280;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copiar:hover {
    background: #4b5563;
}

.copy-icon {
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .property-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .property-type-card {
        padding: 1.25rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .tasador-container {
        margin: -1rem 1rem 2rem;
        padding: 1.5rem 1rem !important;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 0;
    }
    
    /* Layout especial para la fila de Ambientes, Cochera y Seguridad en móvil */
    .form-row-ambientes {
        display: flex;
        flex-direction: column;
    }
    
    .form-group-ambientes {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Contenedor para Cochera y Seguridad en fila de 2 columnas */
    .form-row-mobile-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        width: 100%;
    }
    
    .form-row-mobile-wrapper .form-group {
        margin-bottom: 0;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .form-group {
        margin-bottom: 1.5rem !important;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .error-message {
        font-size: 0.8rem;
    }
    
    .property-type-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .property-type-card {
        padding: 1.25rem 0.75rem !important;
    }
    
    .property-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .property-type-card span {
        font-size: 0.9rem;
    }
    
    /* Mejorar toggle selector en móvil */
    .toggle-selector {
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .toggle-option {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mejorar input de ambientes en móvil */
    .ambientes-input-container {
        gap: 1.5rem !important;
        margin-top: 0.75rem !important;
    }
    
    .ambientes-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        min-width: 48px;
    }
    
    .ambientes-display {
        min-width: 70px;
        font-size: 1.5rem;
    }
}

/* Estilos para pantallas muy pequeñas (móviles pequeños) */
@media (max-width: 480px) {
    .tasador-container {
        margin: -1rem 0.5rem 2rem;
        padding: 1.25rem 0.75rem !important;
    }
    
    .property-type-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
    
    .property-type-card {
        padding: 0.75rem 0.25rem;
    }
    
    .property-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.25rem;
    }
    
    .property-type-card span {
        font-size: 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .toggle-option {
        padding: 0.875rem 0.5rem;
        font-size: 0.95rem;
    }
    
    .ambientes-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        min-width: 44px;
    }
    
    .ambientes-display {
        min-width: 60px;
        font-size: 1.25rem;
    }
}

/* Tipos de Propiedad con Iconos */
.property-type-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.property-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.property-type-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.property-type-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.property-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.property-type-card.selected .property-icon {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.property-type-card input[type="radio"] {
    display: none;
}

/* Selector horizontal tipo toggle */
.toggle-selector {
    display: flex;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.toggle-option {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
}

.toggle-option:last-child {
    border-right: none;
}

.toggle-option.selected {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.toggle-option input[type="radio"] {
    display: none;
}

/* Input con botones + y - */
.ambientes-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.ambientes-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ambientes-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
}

.ambientes-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ambientes-display {
    min-width: 60px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

/* Filas de campos */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

/* Layout especial para la fila de Ambientes en desktop */
.form-row-ambientes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.form-row-mobile-wrapper {
    display: contents;
}

.form-row-mobile-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.superficie-total {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    color: #0c4a6e;
    margin-top: 0.5rem;
}

/* Autocompletado de direcciones */
.address-autocomplete {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.address-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.address-suggestion:hover {
    background-color: #f8fafc;
}

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

.suggestion-main {
    font-weight: 500;
    color: #1e293b;
}

.suggestion-secondary {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.address-instruction {
    padding: 0.75rem 1rem;
    background: #f0f9ff;
    border-bottom: 1px solid #e0f2fe;
    font-size: 0.875rem;
    color: #0369a1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-instruction .icon {
    font-size: 1rem;
}

.address-loading {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.address-no-results {
    padding: 1rem;
    text-align: center;
    color: #ef4444;
    font-size: 0.875rem;
}

.address-selected {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.form-input.address-selected:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.form-step.active {
    animation: fadeIn 0.5s ease-out;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   ESTILOS PARA PÁGINA DE INFORMACIÓN
   ============================================ */

/* Hero Link en Home */
.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-link-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-link-info:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #1e3a8a;
}

.hero-link-icon {
    font-size: 1.25rem;
}

/* Hero Section de Información */
.info-hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.info-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.info-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenedor Principal */
.info-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 4rem;
}

/* Secciones de Información */
.info-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e5e7eb;
}

.info-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.info-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.info-section-intro {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Grid de Partes Involucradas */
.partes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.parte-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.parte-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
    border-color: #3b82f6;
}

.parte-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.parte-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.parte-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Secciones de Fases */
.fase-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3b82f6;
}

.fase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fase-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fase-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.fase-content {
    padding-left: 0.5rem;
}

.fase-subsection {
    margin-bottom: 1.5rem;
}

.fase-subsection:last-child {
    margin-bottom: 0;
}

.fase-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.75rem;
}

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

.fase-list li {
    padding: 0.75rem 0 0.75rem 1.75rem;
    position: relative;
    color: #475569;
    line-height: 1.7;
}

.fase-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
}

.fase-participantes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.95rem;
}

/* Checklist Section */
.checklist-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
}

.checklist-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.checklist-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #10b981;
}

.checklist-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-title::before {
    content: "📋";
    font-size: 1.5rem;
}

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

.checklist-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.checklist-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .info-hero-title {
        font-size: 2rem;
    }
    
    .info-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .info-section-title {
        font-size: 1.5rem;
    }
    
    .partes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .fase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fase-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .fase-title {
        font-size: 1.2rem;
    }
    
    .hero-link-info {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* ============================================
   ESTILOS PARA CHECKBOX TÉRMINOS Y CONDICIONES
   ============================================ */

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.terms-checkbox-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.terms-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3b82f6;
}

.terms-checkbox-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    flex: 1;
}

.terms-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #1e40af;
}

.terms-checkbox-label input[type="checkbox"]:checked + .terms-checkbox-text {
    color: #1e293b;
}

/* Botón deshabilitado */
.btn-disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   ESTILOS PARA PÁGINA TÉRMINOS Y CONDICIONES
   ============================================ */

.terms-hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.terms-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.terms-hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.terms-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 3rem;
}

.terms-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terms-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.terms-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    text-align: justify;
}

.terms-text strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive para términos */
@media (max-width: 768px) {
    .terms-hero-title {
        font-size: 1.5rem;
    }
    
    .terms-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .terms-content {
        padding: 1.5rem;
    }
    
    .terms-section-title {
        font-size: 1rem;
    }
    
    .terms-text {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .terms-checkbox-label {
        padding: 0.75rem;
    }
    
    .terms-checkbox-text {
        font-size: 0.875rem;
    }
}
