/* * Confirmame.pe - Global Stylesheet 2026
 * Brand Identity: Modern, Elegant, Reliable
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap");

:root {
  /* Brand Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --accent: #f472b6; /* Rosa para detalles de boda */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutrals */
  --dark: #0f172a; /* Slate 900 */
  --gray-dark: #475569; /* Slate 600 */
  --gray: #94a3b8; /* Slate 400 */
  --gray-light: #f1f5f9; /* Slate 100 */
  --white: #ffffff;

  /* UI Specs */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --font-main: "Inter", sans-serif;
  --font-heading: "Playfair Display", serif;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* --- HEADER & NAVIGATION --- */
.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-login {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-nav-primary {
  background: var(--secondary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-nav-primary:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* HERO SECTION */
.hero-section {
  padding: 160px 20px 100px;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.08), transparent);
}

.badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--secondary);
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-main {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.btn-primary-main {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-secondary-main {
  background: white;
  color: var(--secondary);
  border: 1px solid #e2e8f0;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text i {
  color: var(--accent);
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* --- CARDS & STATS --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  color: var(--primary);
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* Pill shape like Eventia */
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128c7e;
}

/* --- TABLES --- */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--gray-light);
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--gray-dark);
  font-weight: 600;
}

td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}

tr:hover {
  background: #fdfdfd;
}

/* --- BADGES --- */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pending {
  background: #fffbeb;
  color: #92400e;
}
.badge-confirmed {
  background: #ecfdf5;
  color: #065f46;
}

/* --- FORMS --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray);
  font-family: inherit;
  transition: border 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* --- LANDING SPECIFIC (Index.php) --- */
.hero {
  padding: 6rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-dark);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* --- MODALS --- */
.modal-overlay {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  /* Fuente recomendada */
  font-family: "Inter", sans-serif;
}

.logo-text-main {
  color: #1e293b; /* Azul muy oscuro / Negro */
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-text-extension {
  color: #6366f1; /* Indigo del icono */
  font-weight: 400;
}

/* El icono del calendario (Isotipo) */
.logo-icon {
  background: #6366f1;
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header {
    padding: 1rem;
  }

  /* Esconder columnas menos importantes en móvil */
  .desktop-only {
    display: none;
  }
}
