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

:root {
  --bg-color: #151f1a;
  --text-primary: #ffffff;
  --text-secondary: #f1f5f9;
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-glow: rgba(255, 255, 255, 0.05);
  --accent-1: #e67e22;
  --accent-2: #27ae60;
  --accent-3: #2980b9;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Fix multiplataforma para visualización de iconos en iOS, Safari y móviles */
ion-icon {
  display: inline-block;
  visibility: visible !important;
  min-width: 1em;
  min-height: 1em;
}

/* Glowing Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: float 25s infinite ease-in-out alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: var(--accent-1);
  top: -150px;
  left: -150px;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--accent-2);
  top: 30%;
  right: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 550px;
  height: 550px;
  background: var(--accent-3);
  bottom: -250px;
  left: 20%;
  animation-delay: -10s;
  opacity: 0.3;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 80px) scale(1.1); }
  100% { transform: translate(-80px, -80px) scale(0.9); }
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(21, 31, 26, 0.85);
  backdrop-filter: blur(15px);
  padding: 15px 60px;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo-blue {
  color: #1d4ed8 !important; /* Azul Marino */
}

.logo-green {
  color: #15803d !important; /* Verde Oscuro */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  transition: all 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent-1);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--accent-1);
  text-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 5.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(to right, #e67e22, #27ae60); /* Construcción (Naranja) y Naturaleza (Verde) */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 50px;
  line-height: 1.6;
}

.btn {
  padding: 16px 45px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(230, 126, 34, 0.3), inset 0 0 15px rgba(230, 126, 34, 0.1);
  transform: translateY(-4px);
  border-color: rgba(230, 126, 34, 0.5);
  color: var(--accent-1);
}

/* Services Section */
.services {
  padding: 120px 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 80px;
  font-weight: 600;
  background: linear-gradient(to right, #ffffff, #a8b2d1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.service-card {
  padding: 45px 35px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: all 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(255, 255, 255, 0.8);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: var(--accent-1);
  display: inline-block;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--accent-1));
}

.service-card:nth-child(even):hover .service-icon {
  color: var(--accent-2);
  filter: drop-shadow(0 0 10px var(--accent-2));
}

.service-card:nth-child(3n):hover .service-icon {
  color: var(--accent-3);
  filter: drop-shadow(0 0 10px var(--accent-3));
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 1px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  padding: 120px 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px;
  transition: all 0.4s ease;
}

.contact-card > ion-icon {
  font-size: 3rem;
  color: var(--accent-1);
  flex-shrink: 0;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-content p, .card-content a {
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-content a:hover {
  color: var(--accent-1);
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.map-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(40, 53, 45, 0.7), rgba(15, 22, 18, 0.9));
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-links a:hover {
  background: linear-gradient(135deg, rgba(50, 66, 56, 0.8), rgba(10, 15, 12, 1));
  border-color: var(--accent-1);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3), inset 0 0 15px rgba(230, 126, 34, 0.1);
  transform: translateY(-3px);
  color: var(--accent-1);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-links a ion-icon {
  font-size: 2rem;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(15, 22, 18, 0.5));
  padding: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(255, 255, 255, 0.02);
}

.social-links a:hover ion-icon {
  color: var(--accent-1);
  border-color: var(--accent-1);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3), inset 0 0 10px rgba(230, 126, 34, 0.1);
  filter: drop-shadow(0 0 8px var(--accent-1));
}

.contact-map {
  padding: 15px;
  border-radius: 20px;
  height: 500px;
  display: flex;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  flex: 1;
  border-radius: 12px;
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%); /* Truco AMOLED Map */
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form-wrapper {
  border-top: 2px solid var(--accent-1) !important;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.8), 0 0 50px rgba(230, 126, 34, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
  background: linear-gradient(135deg, rgba(40, 53, 45, 0.5), rgba(15, 22, 18, 0.9)) !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  border-left: 3px solid var(--accent-1);
  padding-left: 10px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: linear-gradient(135deg, rgba(30, 42, 35, 0.6), rgba(15, 22, 18, 0.8));
  border: 1px solid rgba(230, 126, 34, 0.25);
  border-radius: 10px;
  padding: 14px 15px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Outfit', sans-serif;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(230, 126, 34, 0.3), 0 0 5px rgba(230, 126, 34, 0.2);
  background: rgba(15, 22, 18, 0.9);
  transform: translateY(-2px);
}

.form-group select option {
  background: var(--bg-color);
  color: var(--text-primary);
}

/* Submit Button AMOLED */
.submit-btn {
  width: 100%;
  margin-top: 15px;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(15, 22, 18, 0.8)) !important;
  border: 1px solid rgba(230, 126, 34, 0.4) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(230, 126, 34, 0.1) !important;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff !important;
}

.submit-btn:hover {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.3), rgba(10, 15, 12, 0.95)) !important;
  border-color: rgba(230, 126, 34, 0.9) !important;
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4), inset 0 0 20px rgba(230, 126, 34, 0.2) !important;
  transform: translateY(-4px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(21, 31, 26, 0.7);
  backdrop-filter: blur(20px);
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0.9;
  letter-spacing: 2px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: -15px;
}

.footer-credits {
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: 10px;
}

.footer-credits a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.footer-credits a:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  .hero p { font-size: 1.2rem; }
  header { padding: 20px; flex-direction: column; gap: 15px; }
  nav ul { gap: 20px; }
  .services { padding: 80px 20px; }
  .section-title { font-size: 2.8rem; margin-bottom: 50px; }
  .orb { filter: blur(80px); }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-section { padding: 80px 20px; }
  .contact-map { height: 350px; }
}
