/* ============================================
   CALCULADORA DE CALORÍAS - CSS COMPLETO
   Diseño moderno y optimizado para AdSense
   ============================================ */

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
    line-height: 1.2;
}

.page-description {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    position: sticky;
    top: 100px;
}

.form-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #1f2937;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group small {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.0625rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Radio Group */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + span {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.radio-option:hover span {
    border-color: #f97316;
}

/* Select Styling */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Calculate Button */
.btn-calculate {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2rem;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* Results Section */
.calculator-results {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

/* Result Cards */
.result-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border-left: 6px solid #f59e0b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 1rem 0;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-description {
    color: #92400e;
    line-height: 1.6;
    font-size: 1rem;
}

/* Macros Grid */
.macros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.macro-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.macro-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.macro-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.macro-name {
    font-weight: 700;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.macro-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.macro-kcal {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Goals Section */
.goals-section {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.goals-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 1rem 0;
}

.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 2px solid #e5e7eb;
}

.goal-item:last-child {
    margin-bottom: 0;
}

.goal-label {
    font-weight: 600;
    color: #374151;
}

.goal-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f97316;
}

/* Content Section */
.content-section {
    margin-top: 4rem;
}

.educational-content {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.educational-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 2rem 0;
    border-bottom: 4px solid #f97316;
    padding-bottom: 1rem;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
}

.content-block h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
}

.content-block p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.content-block ul,
.content-block ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-block li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

/* FAQ Items */
.faq-item {
    background: #f9fafb;
    border-left: 4px solid #f97316;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.faq-item h4 {
    color: #1f2937;
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.faq-item p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .form-card {
        position: static;
    }

    .macros-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .educational-content {
        padding: 2rem 1.5rem;
    }

    .educational-content h2 {
        font-size: 1.75rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 1.5rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .educational-content {
        padding: 1.5rem 1rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .macro-value {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .form-card,
    header,
    footer {
        display: none;
    }

    .calculator-results {
        box-shadow: none;
    }
}