/* CSS Stylesheet for Gobernación Marítima de Caldera */
/* División de Concesiones Marítimas */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #0d2c5c;
  --primary-navy-rgb: 13, 44, 92;
  --secondary-gold: #c5a059;
  --accent-gold: #d4af37;
  --accent-gold-rgb: 212, 175, 55;
  --light-blue: #1e5ba9;
  --light-bg: #f4f7fa;
  --dark-bg: #091a33;
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --glass-bg: rgba(13, 44, 92, 0.45);
  --glass-border: rgba(255, 255, 255, 0.15);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */

#top-bar {
  background-color: #071935;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--secondary-gold);
}

.container-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.hora-oficial {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hora-oficial span.time-badge {
  background-color: var(--accent-gold);
  color: #071935;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.top-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.top-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.top-links a:hover {
  color: var(--accent-gold);
}

/* Main Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-dgtm {
  height: 52px;
  width: auto;
  transition: var(--transition-smooth);
}

.escudo-brand {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: var(--primary-navy);
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--secondary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Menu */
.main-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-menu a {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding: 8px 0;
  transition: var(--transition-smooth);
}

.main-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.main-menu a:hover {
  color: var(--secondary-gold);
}

.main-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-navy);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section & Slideshow
   ========================================================================== */

#hero {
  position: relative;
  height: calc(100vh - 120px);
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 25, 53, 0.85) 0%, rgba(13, 44, 92, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-text-area {
  color: var(--text-light);
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 15px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  font-family: 'Outfit', sans-serif;
  border-left: 4px solid var(--accent-gold);
  padding-left: 15px;
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 35px;
  max-width: 580px;
}

/* ==========================================================================
   Glassmorphic Login Card
   ========================================================================== */

.login-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1.2s ease-out;
}

.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--card-shadow);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.login-card-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.login-card-header .escudo-login {
  height: 65px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.login-card-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.login-card-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.login-form {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px 12px 42px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
}

.remember-me input {
  accent-color: var(--accent-gold);
}

.forgot-password {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.forgot-password:hover {
  text-decoration: underline;
  color: #ffeb99;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b08d43 100%);
  color: #071935;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #ffd75e 0%, var(--accent-gold) 100%);
}

.btn-login:active {
  transform: translateY(0);
}

/* Error message styling */
.error-message {
  background-color: rgba(239, 68, 68, 0.2);
  border-left: 4px solid #ef4444;
  color: #fca5a5;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  display: none;
}

/* Success message styling */
.success-message {
  background-color: rgba(16, 185, 129, 0.2);
  border-left: 4px solid #10b981;
  color: #a7f3d0;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  display: none;
  text-align: center;
}

/* ==========================================================================
   Concessiones Marítimas Information Section
   ========================================================================== */

.section-padding {
  padding: 90px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-pretitle {
  color: var(--secondary-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  color: var(--primary-navy);
  font-size: 2.25rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto;
  color: #64748b;
  font-size: 1.05rem;
}

/* Grid layout */
.concesiones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.concesion-card {
  background: var(--text-light);
  border-radius: 12px;
  padding: 35px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(13, 44, 92, 0.08);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.concesion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary-navy);
  border-radius: 12px 12px 0 0;
  transition: var(--transition-smooth);
}

.concesion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 44, 92, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.concesion-card:hover::before {
  background-color: var(--accent-gold);
  height: 8px;
}

.card-icon {
  width: 55px;
  height: 55px;
  background-color: rgba(13, 44, 92, 0.06);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-navy);
  font-size: 1.5rem;
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.concesion-card:hover .card-icon {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.concesion-card h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.concesion-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

.card-meta span strong {
  color: var(--primary-navy);
}

/* ==========================================================================
   Links de Acceso Relevantes
   ========================================================================== */

#links-section {
  background-color: #0b1a30;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

#links-section::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

#links-section .section-title {
  color: var(--text-light);
}

#links-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.link-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition-smooth);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-gold);
  transform: scale(1.02);
}

.link-icon-container {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-gold);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.link-card:hover .link-icon-container {
  background: var(--accent-gold);
  color: #071935;
  transform: rotate(5deg);
}

.link-details h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-details h4 i.arrow {
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  transform: translateX(0);
}

.link-card:hover .link-details h4 i.arrow {
  transform: translateX(5px);
  color: var(--accent-gold);
}

.link-details p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

/* ==========================================================================
   Jurisdiction Map & Contact Info
   ========================================================================== */

.jurisdiction-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

/* Interactive SVG Map Container */
.map-visual-container {
  background: var(--text-light);
  border: 1px solid rgba(13, 44, 92, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
  position: relative;
}

.map-svg {
  width: 100%;
  height: 100%;
  max-height: 380px;
}

.map-region-path {
  fill: #e2e8f0;
  stroke: #94a3b8;
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.map-region-path.active-jurisdiction {
  fill: rgba(13, 44, 92, 0.08);
  stroke: var(--primary-navy);
  stroke-width: 2;
}

.map-point {
  fill: var(--accent-gold);
  stroke: #ffffff;
  stroke-width: 2;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-point:hover {
  fill: var(--primary-navy);
  r: 9;
}

.map-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: var(--primary-navy);
  pointer-events: none;
}

.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Contact Info list */
.info-box {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(13, 44, 92, 0.05);
}

.contact-card-icon {
  font-size: 1.5rem;
  color: var(--primary-navy);
  background: rgba(13, 44, 92, 0.05);
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-card-text h5 {
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.contact-card-text p, .contact-card-text a {
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-card-text a:hover {
  color: var(--light-blue);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background-color: #051021;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px 0;
  border-top: 4px solid var(--accent-gold);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links-col h5 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--accent-gold);
  color: #071935;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--text-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-subtitle {
    border-left: none;
    padding-left: 0;
  }

  .hero-description {
    margin: 0 auto 30px auto;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .jurisdiction-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 20px;
    gap: 15px;
  }

  .main-menu.mobile-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .container-top {
    flex-direction: column;
    gap: 5px;
    padding: 10px 20px;
    text-align: center;
  }

  .top-links {
    display: none;
  }

  .logo-dgtm {
    height: 40px;
  }

  .escudo-brand {
    height: 42px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
