/* ==========================================================
   🌸 IVIREZ PANAMÁ - ESTILOS CALCULADORA DE PEDIDOS
   Ubicación: /app_calculadora/styles_calculadora.css
   ========================================================== */

:root {
  --rojo: #A73525;
  --rojo-oscuro: #842B1D;
  --fondo: #F6F2EC;
  --acento: #FFF8F3;
  --borde: #e0d4c8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  background: var(--fondo);
  color: #333;
  margin: 0;
  padding: 0;
}

/* ---------- ENCABEZADO ---------- */
.header {
  background: var(--acento);
  text-align: center;
  padding: 30px 10px;
  border-bottom: 4px solid var(--rojo);
}

.logo {
  width: 100px;
  height: auto;
}

h1 {
  color: var(--rojo);
  font-size: 1.9rem;
  margin: 10px 0 5px;
}

.slogan {
  color: #555;
  font-style: italic;
}

/* ---------- ESTRUCTURA PRINCIPAL ---------- */
.calculadora {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 25px;
  width: min(1100px, 95%);
  margin: 40px auto;
}

.formulario,
.resumen {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 24px 28px;
}

.formulario h2 {
  color: var(--rojo);
}

/* ---------- CAMPOS DE FORMULARIO ---------- */
.campo {
  margin-bottom: 16px;
}

.campo label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #444;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rojo);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ---------- OPCIONES ADICIONALES ---------- */
.opciones {
  background: var(--fondo);
  border: 1px solid var(--borde);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #333;
}

.opciones label {
  display: block;
  margin-bottom: 6px;
}

/* ---------- BOTÓN PRINCIPAL ---------- */
button#btnPagar {
  width: 100%;
  padding: 14px 20px;
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.05s ease;
}

button#btnPagar:hover {
  background: var(--rojo-oscuro);
}

button#btnPagar:active {
  transform: scale(0.98);
}

/* ---------- PANEL DE RESUMEN ---------- */
.resumen h2 {
  color: var(--rojo);
  text-align: center;
  margin-top: 0;
}

.resumen p {
  margin: 10px 0;
  font-size: 1.05rem;
}

.resumen strong {
  color: var(--rojo-oscuro);
}

.imagen {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--acento);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  min-height: 250px;
}

.imagen img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  object-fit: cover;
}

.resultado {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--acento);
  padding: 15px;
  border-top: 2px solid var(--rojo);
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

footer p {
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 850px) {
  .calculadora {
    grid-template-columns: 1fr;
  }

  .imagen {
    min-height: 180px;
  }

  h1 {
    font-size: 1.6rem;
  }

  button#btnPagar {
    font-size: 1rem;
  }
}
