/**
 * Estilos Premium - Portal Cautivo Campo Argentino
 * Restaurante Argentino Premium de Cortes de Carne
 * Diseño: Elegancia, Modernidad, Sofisticación
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;600;700&display=swap');

:root {
  /* COLORES PREMIUM */
  --verde-oscuro: #2A4B3D;
  --oro-premium: #D4AF37;
  --blanco-puro: #FFFFFF;
  --gris-oscuro: #1A1A1A;
  --rojo-argentino: #8B0000;
  --gris-claro: #F5F5F5;
  
  /* COLORES ORIGINALES (mantener compatibilidad) */
  --primary-color: #2A4B3D;
  --primary-color-rgb: 42, 75, 61;
  --secondary-color: #D4AF37;
  --secondary-color-rgb: 212, 175, 55;
  --accent-color: #8B0000;
  
  /* COLORES FUNCIONALES */
  --success-color: #4caf50;
  --success-color-rgb: 76, 175, 80;
  --danger-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2A4B3D;
  --info-color-rgb: 42, 75, 61;
  
  /* COLORES NEUTROS */
  --light-color: #f5f5f5;
  --dark-color: #1A1A1A;
  --gray-color: #666;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  
  /* GRADIENTES PREMIUM */
  --gradient-ca: linear-gradient(135deg, #2A4B3D 0%, #D4AF37 100%);
  --gradient-ca-alt: linear-gradient(45deg, #D4AF37 0%, #2A4B3D 100%);
  --gradient-light: linear-gradient(135deg, rgba(42, 75, 61, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gradient-premium: linear-gradient(135deg, #2A4B3D 0%, #1A1A1A 100%);
  
  /* TIPOGRAFÍA */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* SOMBRAS */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #2A4B3D 0%, #3A5A4D 50%, #4A6A5D 100%);
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* Card principal */
.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideInUp 0.6s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  text-align: center;
  max-width: 520px;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header de la card */
.header {
  background: linear-gradient(135deg, #2A4B3D 0%, #1A1A1A 50%, #2A4B3D 100%);
  color: white;
  padding: 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--oro-premium);
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -30px); }
}

.logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.logo-img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: bobbing 3.5s ease-in-out infinite;
  object-fit: contain;
}

@keyframes bobbing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.header .subtitle {
  display: none;
}

/* Contenido principal */
.content {
  padding: 2.5rem 2rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(42, 75, 61, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--verde-oscuro);
  margin-bottom: 1rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1rem;
}

.content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--oro-premium);
  border-radius: 2px;
}

.content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

/* Formulario */
.form-group {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  font-family: var(--font-body);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  transition: all 0.35s ease;
  font-family: var(--font-body);
  background-color: #fafafa;
  color: var(--text-color);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
  border-color: var(--oro-premium);
  background-color: white;
  box-shadow: var(--shadow-sm);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--verde-oscuro);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(42, 75, 61, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* Botones */
.btn {
  width: 100%;
  padding: 1.1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  box-shadow: var(--shadow-md);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #2A4B3D 0%, #1A1A1A 100%);
  color: var(--oro-premium);
  border: 2px solid var(--oro-premium);
  position: relative;
  z-index: 0;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(42, 75, 61, 0.4);
  background: linear-gradient(135deg, #1A1A1A 0%, #2A4B3D 100%);
  color: #FFD700;
}

.btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(42, 75, 61, 0.3);
}
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer p {
  margin: 0.5rem 0;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.network-info {
  background: linear-gradient(135deg, rgba(42, 75, 61, 0.08) 0%, rgba(194, 168, 120, 0.08) 100%);
  padding: 1rem;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color);
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Utilidades de texto */
.text-primary {
  color: var(--primary-color);
}

.text-success {
  color: var(--success-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-muted {
  color: #999;
}

.text-center {
  text-align: center;
}

/* Sombras */
.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-color);
  color: white;
}

.badge-success {
  background: var(--success-color);
  color: white;
}

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
  animation: slideInDown 0.3s ease;
}

.alert-success {
  background-color: #e8f5e9;
  border-left-color: var(--success-color);
  color: #2e7d32;
}

.alert-danger {
  background-color: #ffebee;
  border-left-color: var(--danger-color);
  color: #c62828;
}

.alert-warning {
  background-color: #fff3e0;
  border-left-color: var(--warning-color);
  color: #e65100;
}

.alert-info {
  background-color: #e3f2fd;
  border-left-color: var(--info-color);
  color: #01579b;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loader/Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(42, 75, 61, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animaciones */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .content {
    padding: 1.5rem 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a2e27 0%, #7a6d4f 100%);
  }

  .card {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .content h2,
  .form-group label {
    color: #c2a878;
  }

  .content p,
  .footer,
  .text-light {
    color: #aaa;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="date"],
  textarea,
  select {
    background-color: #2a2a2a;
    color: #f0f0f0;
    border-color: rgba(255, 255, 255, 0.2);
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="password"]:focus,
  input[type="tel"]:focus,
  input[type="date"]:focus,
  textarea:focus,
  select:focus {
    background-color: #333;
    box-shadow: 0 0 0 4px rgba(194, 168, 120, 0.2);
  }

  .footer {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

/* Modal para anuncios */
/* MODAL PREMIUM ANUNCIOS */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px;
  box-sizing: border-box;
}

#adContent {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  overflow-y: auto;
}

.modal-content {
  background: white;
  padding: 0;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  margin: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(50px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  text-align: center;
  padding: 1.5rem 1.5rem;
  background: linear-gradient(135deg, #2A4B3D 0%, #1A1A1A 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 0%,
    rgba(212, 175, 55, 0.1) 50%,
    transparent 100%);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

.modal-logo {
  max-width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.modal-header h2 {
  color: white;
  font-size: 1.4rem;
  margin: 0.5rem 0 0 0;
  font-weight: bold;
}

.modal-body {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.modal-body p {
  margin: 0.75rem 0;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.modal-body p strong {
  color: var(--verde-oscuro);
  font-weight: 700;
  font-family: var(--font-body);
}

.modal-body img,
.modal-body video {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Botón de cierre del modal */
.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 32px;
  font-weight: bold;
  color: var(--oro-premium);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--oro-premium);
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
}

.close:hover {
  color: var(--blanco-puro);
  background-color: var(--oro-premium);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

/* Botón dentro del modal */
.modal .btn {
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1rem;
  font-family: var(--font-body);
}

.modal .btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.modal .btn:not(:disabled):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 75, 61, 0.3);
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    padding: 0;
    border-radius: 16px;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-body p {
    font-size: 0.95rem;
  }

  .modal-logo {
    max-width: 100px;
  }

  .close {
    right: 1rem;
    top: 1rem;
    font-size: 28px;
    width: 32px;
    height: 32px;
  }
}

/* Animación de entrada del modal */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal desaparición */
@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(50px);
  }
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* MEJORAS VISUALES FINALES */

/* Efecto de glow sutil en la tarjeta */
.card {
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(194, 168, 120, 0.1) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 16px;
}

/* Animación al cargar la página */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card {
  animation: fadeInScale 0.6s ease-out;
}

/* Input focus con animación */
input:focus {
  animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 75, 61, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(42, 75, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(42, 75, 61, 0);
  }
}

/* Footer mejorado */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 2px solid var(--border-color);
  background: linear-gradient(135deg, rgba(42, 75, 61, 0.03) 0%, rgba(194, 168, 120, 0.03) 100%);
  font-size: 0.85rem;
}

.footer p {
  margin: 0.7rem 0;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

.footer a:hover {
  color: var(--secondary-color);
}

/* Responsive improvements */
@media (max-width: 480px) {
  .card {
    border-radius: 12px;
  }
  
  .header {
    padding: 1rem 1rem;
  }
  
  .logo-container {
    min-height: 140px;
  }
  
  .logo-img {
    max-height: 140px;
  }
  
  .content {
    padding: 2rem 1.2rem;
  }
  
  .btn {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .btn {
    border: 1px solid #333;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ANIMACIONES PREMIUM PARA MODAL */
/* ═══════════════════════════════════════════════════════════════ */

/* Shimmer effect para header del modal */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Fade In mejorado */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide In Up mejorado para modal */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Slide Out Down para cierre */
@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
}

/* Pulse effect para elementos destacados */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Bounce In para checkmarks */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Shake para warnings */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Bobbing para logo */
@keyframes bobbing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Float effect para gradientes */
@keyframes float {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-10px);
  }
}

/* Shine effect para botones */
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

