@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Prata&display=swap");

/* ==========================================
   VARIABLES DE DISEÑO - PALETA INDEPENDIENTE
   ========================================== */
:root {
  --color-primary: #00175B;     /* Azul Marino Profundo PInv */
  --color-accent: #A8C1D8;      /* Azul Suave */
  --color-light-bg: #D9D9D9;    /* Gris Claro */
  --color-white: #F5F5F5;       /* Blanco Hueso */
  --color-text-dark: #121212;   /* Negro Carbón */
  --font-sans: "Geist", sans-serif;
  --font-serif: "Prata", serif;
}

/* ==========================================
   RESET BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
}

h4, h5, h6, .subtitle {
  font-family: var(--font-serif);
  font-weight: normal;
}

p, li, td, th, span, input, button, textarea, select {
  font-family: var(--font-sans);
}

/* ==========================================
   GRID CSS (Coherente con la estructura original)
   ========================================== */
.container {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1440px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class^="col-"] {
  padding: 15px;
  width: 100%;
}

/* Clases de columnas responsivas */
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}

@media (min-width: 992px) {
  .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
}

/* ==========================================
   HEADER Y MENU DINÁMICO
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  padding: 1rem 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

header.claro {
  background-color: rgba(245, 245, 245, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-text-dark);
}

header.azul {
  background-color: rgba(0, 23, 91, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav {
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid currentColor;
  text-transform: uppercase;
}

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

header.claro .btn-nav.highlight {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.menu-trigger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}

.menu-trigger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transition: transform 0.2s ease;
}

/* ==========================================
   HOME DE TRANSICIÓN ("COMING SOON")
   ========================================== */
.hero-transition {
  background: radial-gradient(circle at center, #002288 0%, var(--color-primary) 100%);
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  position: relative;
  text-align: center;
  padding: 2rem;
}

.transition-content {
  max-width: 800px;
  z-index: 10;
}

.transition-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  color: var(--color-white);
}

.transition-logo span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-top: 0.3rem;
  opacity: 0.8;
}

.hero-transition h1 {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.btn-action-large {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border-radius: 40px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-action-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

/* ==========================================
   SIDEBAR MENU & CONTACTO
   ========================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background-color: var(--color-primary);
  color: var(--color-white);
  transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1001;
  padding: 6rem 2.5rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.sidebar.open {
  right: 0;
}

#sidebar-contacto {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.sidebar-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
}

.sidebar-close svg line {
  stroke: currentColor;
}

.sidebar h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0.2rem;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

#sidebar-menu input, #sidebar-menu textarea {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--color-text-dark);
}

#sidebar-menu input:focus,
#sidebar-menu textarea:focus {
  border-bottom-color: var(--color-white);
}

.contact-form input[type="submit"] {
  align-self: flex-start;
  padding: 0.6rem 2.5rem;
  border-radius: 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 2rem;
  font-size: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2.5fr 1.2fr 1.2fr 1fr 1.8fr 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  color: var(--color-white);
}

.footer-col p {
  font-size: 0.65rem;
  line-height: 1.6;
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  font-size: 0.65rem;
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-col ul li a:hover {
  opacity: 1;
}

.footer-col .copyright {
  margin-top: 1.5rem;
  font-size: 0.6rem;
  opacity: 0.5;
}

/* Estilos para el QR de Data Fiscal */
.data-fiscal-mock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #cbd5e0;
  width: 75px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.data-fiscal-mock .df-title {
  font-size: 0.35rem;
  color: #1a365d;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.data-fiscal-mock .df-qr {
  background: #fafafa;
  padding: 0.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.data-fiscal-mock .df-footer {
  font-size: 0.35rem;
  color: #4a5568;
  font-weight: bold;
  margin-top: 0.2rem;
}

.footer-legal-text {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  opacity: 0.7;
  font-size: 0.65rem;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.no-scroll {
  overflow: hidden;
}

/* ==========================================
   ESTILOS DE ADMINISTRACIÓN / CMS
   ========================================== */
.admin-container {
  max-width: 1200px;
  margin: 100px auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-light-bg);
  padding-bottom: 1rem;
}

.admin-title-row h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary);
}

.admin-card {
  border: 1px solid var(--color-light-bg);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn-admin {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
  text-align: center;
}

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

.btn-admin.secondary {
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
}

/* ==========================================
   ESTILOS FICHA ÚNICA
   ========================================== */
.ficha-container {
  max-width: 1000px;
  margin: 120px auto 4rem;
  padding: 2.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  font-size: 0.85rem;
}

.ficha-header {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.ficha-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-primary);
}

.ficha-section {
  margin-bottom: 2.5rem;
}

.ficha-section h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-light-bg);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

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

@media (min-width: 768px) {
  .ficha-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.ficha-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dotted rgba(0,0,0,0.1);
}

.ficha-item span.label {
  font-weight: 500;
  opacity: 0.8;
}

.ficha-table {
  width: 100%;
  margin-top: 1rem;
}

.ficha-table th, .ficha-table td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--color-light-bg);
}

.ficha-table th {
  background-color: rgba(168, 193, 216, 0.2);
  font-weight: 600;
}

/* Vista de Impresión / PDF */
@media print {
  body {
    background: white;
    color: black;
    font-size: 10pt;
  }
  header, footer, .sidebar, .btn-action-large {
    display: none !important;
  }
  .ficha-container {
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }
}
