/* ========================================
   Variables CSS - TEMA VERDE PROFESIONAL
   ======================================== */
:root {
  --primary-color: #059669;
  --primary-dark: #047857;
  --secondary-color: #064E3B;
  --accent-color: #34D399;
  --text-color: #1A1A2E;
  --text-light: #555;
  --text-lighter: #888;
  --border-color: #E8E8E8;
  --background: #F7F9FC;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* ========================================
   Reset y Base
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   Header con Logo - MÁS GRANDE
   ======================================== */
.main-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  height: auto;
  padding: 4px 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-image {
  height: 95px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: filter 0.3s ease;
}

.logo:hover .logo-image {
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.2));
}

.main-header nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-header nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.main-header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.main-header nav ul li a:hover::after,
.main-header nav ul li a.active::after {
  width: 100%;
}

/* ========================================
   Contact Hero
   ======================================== */
.contact-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #053321 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.2);
}

.contact-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Información Oficina Section
   ======================================== */
.informacion-oficina {
  padding: 80px 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: 20px;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.info-card-item {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.info-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.info-card-item:hover::before {
  opacity: 0.03;
}

.info-card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent-color);
}

.info-icon-circle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  color: var(--white);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  position: relative;
  z-index: 1;
}

.info-card-content {
  position: relative;
  z-index: 1;
}

.info-card-content h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.info-card-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.info-card-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.info-card-content a:hover {
  color: var(--primary-dark);
}

/* ========================================
   Mapa Section
   ======================================== */
.mapa-section {
  padding: 80px 0;
  background: var(--white);
}

.mapa-container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mapa-container iframe {
  display: block;
  width: 100%;
}

/* ========================================
   Redes Sociales Section
   ======================================== */
.redes-sociales-section {
  padding: 80px 0;
  background: var(--background);
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

.social-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transition: height 0.3s ease;
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.social-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.social-card.facebook-card::before {
  background: #1877F2;
}

.social-card.instagram-card::before {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.social-card.whatsapp-card::before {
  background: #25D366;
}

.social-card.tiktok-card::before {
  background: #000000;
}

.social-card-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.social-card-disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.social-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.facebook-card .social-card-icon {
  background: #1877F2;
  color: var(--white);
}

.instagram-card .social-card-icon {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  color: var(--white);
}

.whatsapp-card .social-card-icon {
  background: #25D366;
  color: var(--white);
}

.tiktok-card .social-card-icon {
  background: #000000;
  color: var(--white);
}

.social-card:not(.social-card-disabled):hover .social-card-icon {
  transform: scale(1.15) rotate(360deg);
}

.social-card-content {
  position: relative;
  z-index: 1;
}

.social-card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.social-card-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 16px 0;
}

.social-card-arrow {
  color: var(--text-lighter);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.social-card:not(.social-card-disabled):hover .social-card-arrow {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* ========================================
   Footer con Logo - MÁS GRANDE
   ======================================== */
.main-footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.logo-footer {
  display: flex;
  align-items: center;
  height: auto;
  background: transparent;
  padding: 4px 0;
  border-radius: 0;
  backdrop-filter: none;
  transition: opacity 0.3s ease;
  box-shadow: none;
}

.logo-footer:hover {
  opacity: 0.85;
}

.logo-footer-image {
  height: 85px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: brightness(1.15) contrast(1.05) drop-shadow(0 2px 10px rgba(0,0,0,0.25));
  transition: filter 0.3s ease;
}

.logo-footer:hover .logo-footer-image {
  filter: brightness(1.2) contrast(1.05) drop-shadow(0 2px 14px rgba(0,0,0,0.3));
}

.footer-brand p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin: 0;
  padding-left: 2px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a,
.footer-social .social-disabled {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-social .social-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .info-icon-circle {
    width: 56px;
    height: 56px;
  }

  .social-card-icon {
    width: 64px;
    height: 64px;
  }

  .logo-image {
    height: 85px;
  }

  .logo-footer-image {
    height: 78px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 10px 20px;
  }

  .logo {
    padding: 3px 0;
  }

  .logo-image {
    height: 75px;
  }

  .main-header nav ul {
    gap: 20px;
  }

  .contact-hero {
    padding: 60px 0;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1.1rem;
  }

  .informacion-oficina,
  .mapa-section,
  .redes-sociales-section {
    padding: 60px 0;
  }

  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .info-card-item {
    padding: 24px 20px;
  }

  .social-card {
    padding: 28px 24px;
  }

  .info-icon-circle {
    width: 52px;
    height: 52px;
  }

  .social-card-icon {
    width: 60px;
    height: 60px;
  }

  .mapa-container iframe {
    height: 350px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .logo-footer {
    padding: 3px 0;
  }

  .logo-footer-image {
    height: 70px;
  }

  .footer-brand p {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 8px 16px;
  }

  .logo {
    padding: 2px 0;
  }

  .logo-image {
    height: 65px;
  }

  .contact-hero {
    padding: 40px 0;
  }

  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .informacion-oficina,
  .mapa-section,
  .redes-sociales-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .social-links-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-card-item,
  .social-card {
    padding: 24px;
  }

  .info-icon-circle {
    width: 56px;
    height: 56px;
  }

  .social-card-icon {
    width: 64px;
    height: 64px;
  }

  .info-card-content h3 {
    font-size: 1rem;
  }

  .info-card-content p {
    font-size: 0.9rem;
  }

  .social-card-content h3 {
    font-size: 1.2rem;
  }

  .mapa-container iframe {
    height: 300px;
  }

  .logo-footer {
    padding: 2px 0;
  }

  .logo-footer-image {
    height: 60px;
  }
}