/* ============================================
   CALCULADORA DE EMBARAZO - CSS
   ============================================ */

/* Method Selector */
.method-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
}

.method-label {
    display: block;
    font-weight: 600;
    color: #78350f;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.method-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.method-btn {
    padding: 1rem;
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #78350f;
}

.method-btn:hover {
    background: #fffbeb;
    transform: translateY(-2px);
}

.method-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #d97706;
}

/* Forms */
.calc-form {
    display: none;
}

.calc-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-input {
    padding-right: 4rem;
}

.input-unit {
    position: absolute;
    right: 1rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-help {
    display: block;
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.btn-calculate {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-icon {
    font-size: 1.5rem;
}

/* Resultados */
.resultados {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.resultado-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Resultado Principal */
.resultado-principal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.resultado-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.resultado-info {
    flex: 1;
}

.resultado-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #78350f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.resultado-value {
    font-size: 2rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1.2;
}

/* Resultado Destacado (FPP) */
.resultado-destacado {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.resultado-destacado-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.resultado-destacado-info {
    flex: 1;
}

.resultado-destacado-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #7f1d1d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.resultado-destacado-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #991b1b;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.resultado-destacado-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #b91c1c;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.info-card-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Progreso Embarazo */
.progreso-embarazo {
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.progreso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progreso-label {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.9375rem;
}

.progreso-porcentaje {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e40af;
}

.progreso-bar {
    height: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progreso-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    transition: width 1s ease;
    position: relative;
}

.progreso-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progreso-marcadores {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #1e40af;
    font-weight: 600;
}

/* Desarrollo del Bebé */
.desarrollo-bebe {
    padding: 2rem;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.desarrollo-bebe h3 {
    font-size: 1.25rem;
    color: #831843;
    margin-bottom: 1rem;
    text-align: center;
}

.desarrollo-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    line-height: 1.8;
    color: #374151;
}

.desarrollo-content p {
    margin-bottom: 1rem;
}

.desarrollo-content p:last-child {
    margin-bottom: 0;
}

.desarrollo-content strong {
    color: #9f1239;
    font-weight: 700;
}

/* Resultado Acciones */
.resultado-acciones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Info Section */
.info-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
}

.info-section h2 {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-align: center;
}

.info-cards {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.info-item h3 {
    font-size: 1.125rem;
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.info-item p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.info-item ul {
    margin: 0.75rem 0 0 1.5rem;
    color: #4b5563;
    line-height: 1.8;
}

.info-item strong {
    color: #1e40af;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .method-buttons {
        grid-template-columns: 1fr;
    }

    .method-btn {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .resultado-principal,
    .resultado-destacado {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .resultado-value {
        font-size: 1.5rem;
    }

    .resultado-destacado-value {
        font-size: 1.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .resultado-acciones {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .progreso-porcentaje {
        font-size: 1.25rem;
    }

    .info-section {
        padding: 1.5rem 1rem;
    }

    .desarrollo-bebe {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .breadcrumb,
    .calculator-header,
    .method-selector,
    .calc-form,
    .resultado-acciones {
        display: none !important;
    }

    .resultados {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .calculator-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}