:root {
  --primary-blue: #0b1d3a;
  --secondary-blue: #1c3b6b;
  --accent-gold: #d4af37;
  --accent-gold-hover: #f1c94f;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text-dark: #333333;
  --text-light: #555555;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-blue);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Navbar */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: var(--primary-blue);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.logo-img {
  height: 60px;
}

.logo-text {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/servicioDominical.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 29, 58, 0.8), rgba(11, 29, 58, 0.6));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-blue);
  border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* Sections */
section {
  padding: 100px 20px;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-gold);
}

/* Two Column Layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.text-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-light);
}

.image-rounded {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mision / Nosotros Blocks */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border-bottom: 4px solid var(--accent-gold);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--primary-blue);
  color: var(--white);
}

.contact-section .section-title {
  color: var(--white);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.2rem;
}

.contact-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: bold;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #051024;
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
}

/* Hide menu toggle by default */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-blue);
    flex-direction: column;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 50px;
  }
  .hero h1 { 
    font-size: 2.2rem; 
  }
  .hero p {
    font-size: 1.1rem;
  }
  .btn-group { 
    flex-direction: column; 
    gap: 15px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .grid-2 { 
    grid-template-columns: 1fr; 
    gap: 30px;
  }
  section {
    padding: 60px 20px;
  }
}
