/* ========================================
   Servicios en Zaragoza - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary-blue: #1e5a8e;
  --primary-blue-light: #2b7bc4;
  --primary-blue-dark: #0f3d5c;
  --primary-yellow: #f5a623;
  --primary-yellow-light: #ffb84d;
  --primary-yellow-dark: #d68910;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Metallic Effects */
  --metallic-gradient: linear-gradient(
    135deg,
    #e8eaed 0%,
    #c5cdd6 50%,
    #a8b2be 100%
  );
  --metallic-shine: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-base);
  border-bottom: 3px solid var(--primary-yellow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
  transition: var(--transition-base);
}

.logo img {
  height: 180px;
  width: auto;
  transition: var(--transition-base);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo a:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo a[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 1001;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--primary-blue);
  font-weight: 600;
  padding: 10px 15px;
  display: block;
  border-radius: 6px;
  transition: var(--transition-base);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-blue-dark);
  background-color: var(--gray-50);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-yellow);
  transition: var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 80%;
}

.btn-ticket {
  background: linear-gradient(
    135deg,
    var(--primary-yellow) 0%,
    var(--primary-yellow-dark) 100%
  );
  color: var(--gray-900) !important;
  font-weight: 600;
  padding: 10px 20px !important;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.btn-ticket:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow-xl);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-base);
  margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: var(--gray-800);
  padding: 12px 20px;
  display: block;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background-color: var(--gray-100);
  color: var(--primary-blue);
  transform: translateX(5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 50%,
    var(--primary-blue-light) 100%
  );
  padding: 120px 0;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(245, 166, 35, 0.1) 0%,
    transparent 50%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-yellow) 0%,
    var(--primary-yellow-dark) 100%
  );
  color: var(--gray-900);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

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

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

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 50px;
}

/* Services Overview */
.services-overview {
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue) 0%,
    var(--primary-yellow) 100%
  );
  transform: scaleX(0);
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-link {
  color: var(--primary-yellow-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

/* Why Choose Us */
.why-choose-us {
  background: linear-gradient(
    135deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 100%
  );
  color: var(--white);
}

.why-choose-us .section-title {
  color: var(--white);
}

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

.feature-item {
  text-align: center;
}

.feature-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-yellow);
  opacity: 0.3;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature-item p {
  opacity: 0.9;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-yellow) 0%,
    var(--primary-yellow-dark) 100%
  );
  text-align: center;
  padding: 80px 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--gray-800);
  margin-bottom: 30px;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  transition: var(--transition-base);
  color: var(--white);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--gray-400);
  font-style: italic;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--primary-yellow);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 20px;
  text-align: center;
  color: var(--gray-500);
}

.powered-by {
  margin-top: 10px;
  font-size: 0.875rem;
}

.powered-by a {
  color: var(--primary-yellow);
}

/* Page Header */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 100%
  );
  padding: 60px 0;
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.breadcrumb {
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--primary-yellow);
}

/* Identity Page */
.identity-section {
  padding: 80px 0;
}

.identity-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.identity-text h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.lead {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 40px;
  line-height: 1.8;
}

.mission-vision {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.mission,
.vision {
  background: var(--gray-50);
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
}

.mission h3,
.vision h3 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  font-size: 1.75rem;
}

.values h3 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 30px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.value-item {
  display: flex;
  gap: 15px;
  align-items: start;
}

.value-icon {
  width: 30px;
  height: 30px;
  background: var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 1.125rem;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.value-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Logo Showcase with Gradient */
.logo-showcase {
  position: sticky;
  top: 120px;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.logo-gradient {
  width: 100%;
  height: auto;
  filter: grayscale(0.3);
  transition: var(--transition-slow);
}

.logo-gradient:hover {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--primary-blue);
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
    transition: var(--transition-base);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
  }

  .dropdown-menu a {
    color: var(--white);
  }

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

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .identity-content {
    grid-template-columns: 1fr;
  }

  .logo-showcase {
    position: static;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .whatsapp-float,
  .footer,
  .cta-section {
    display: none;
  }
}

/* Service Detail Page */
.service-detail {
  padding: 60px 0;
  background: var(--white);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.service-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.service-content h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.service-content h3 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-top: 30px;
  margin-bottom: 15px;
}

.service-content p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin: 20px 0;
}

.service-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--gray-700);
  line-height: 1.6;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: 700;
  font-size: 1.2rem;
}

.service-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 968px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-cta {
    flex-direction: column;
  }

  .service-cta .btn {
    width: 100%;
    text-align: center;
  }
}
