/* ============================================
   Cotizador Stadio Italiano - V4 Minimal Modern + Logo
   --------------------------------------------
   Look Card flotante - Ajuste Stark Jarvis Final
=============================================== */

:root {
  --primary-color: #227355;
  --button-color: #227355;
  --button-hover: #083322;
  --background: #f2f4f7;
  --card-bg: #FCFEFF;
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: #333;
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

#logo-container img {
  max-width: 100px;
  height: auto;
}

main {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.sub-text {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

.form-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.2rem 1rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

select,
input[type="text"],
input[type="email"],
input[type="month"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  background: #f9f9f9;
}

button {
  background: var(--button-color);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
  transition: background 0.3s ease;
}

button:hover {
  background: var(--button-hover);
}

.total h2 {
  margin-top: 0;
  color: var(--primary-color);
}

#mensaje_exito {
  background: #e0ffe0;
  border: 1px solid #00aa00;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 500px) {
  main {
    padding: 0;
  }

  #logo-container img {
    max-width: 150px;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.modal-content p {
  margin: 1rem 0;
  font-size: 1rem;
}

.modal-content button {
  background: var(--button-color);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: var(--button-hover);
}
/* ==== Modal Cotización ==== */
#modal_desglose {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#modal_desglose .modal_content {
  background: #fff;
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease-in-out;
}

#modal_desglose h2 {
  color: #006233; /* Verde institucional */
  margin-bottom: 15px;
}

#modal_desglose p {
  color: #444;
  font-size: 15px;
  line-height: 1.4em;
  margin-bottom: 10px;
}

#modal_desglose .desglose_valores {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  font-size: 14px;
  margin: 15px 0;
}

#modal_desglose button {
  background: #d4af37; /* Dorado institucional */
  color: white;
  font-weight: bold;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
}

#modal_desglose button:hover {
  background: #b8912e; /* Dorado más oscuro */
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* Modal general */
.modal-desglose {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 100px; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.5);
}

/* Caja del modal */
.modal-desglose-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Cerrar modal */
.close-desglose {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-desglose:hover {
  color: black;
}

/* Botón enviar */
#btnEnviarAhora {
  background-color: #0b3d2e;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
}
#btnEnviarAhora:hover {
  background-color: #09523d;
}
/* =========================
   Estilo Modal Cotizador
   ========================= */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: slideUp 0.4s ease;
}

.modal-content h2 {
  color: #0c4b84;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.modal-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Botón dentro del modal */
.modal-content button {
  background: #0c4b84;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #0a3b69;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* =========================
   Modal de éxito con ícono
   ========================= */
.modal-content.success {
  position: relative;
  padding-top: 3rem;
}

.modal-content.success::before {
  content: "✅";
  font-size: 3rem;
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 0.6s ease;
}

/* Animación rebote para el check */
@keyframes bounce {
  0%   { transform: translateX(-50%) scale(0.3); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.2); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); }
}