/* --- ESTILOS UNIFICADOS PARA AMBAS CALCULADORAS --- */

.calc-container {
    margin-top: 3rem;
    animation: fadeIn 0.6s ease-out;
}

/* Contenedor general */
.wrapper,
.container {
    background: #020617;
    border: 1px solid #2b3a4a;
    border-radius: 1rem;
    padding: 2rem;
    margin: 0 auto 2rem;
    max-width: 1100px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Calculadora de remodelación centrada */
.calc-wrapper {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

/* Títulos */
.wrapper h1,
.container h1 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* Inputs */
input,
select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #3b4654;
    background: #0f172a;
    color: #e5e7eb;
}

input:focus,
select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px #38bdf8;
}

/* Botones */
button {
    width: 100%;
    padding: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #eb630e, #c57622);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197,118,34,0.5);
}

/* Resultados */
.result,
#result-construccion {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #4b5563;
}

.result-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c57622;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

/* Pills */
.pill {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-right: 0.3rem;
}

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

/* Estilos específicos para la calculadora de construcción */
.container {
    max-width: 1100px;
}

.container h1 {
    font-size: 1.6rem;
}

.subtitle {
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

.card {
    background: #000;
    border: 1px solid #444;
    border-radius: 0.9rem;
    padding: 1.4rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
}

.card-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #555;
    border-radius: 999px;
    color: #9ca3af;
}

.section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #444;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.inline {
    display: flex;
    gap: 0.5rem;
}

.inline > div {
    flex: 1;
}

.hint {
    font-size: 0.7rem;
    color: #9ca3af;
}

.result-sub {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1rem;
}

.warning {
    color: #ff6b6b;
    font-size: 0.8rem;
    display: none;
    margin-top: 0.5rem;
}

.cta {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.cta strong {
    color: #c57622;
}

.field {
    margin-bottom: 1rem;
}
