/* Fonts: Inter (Body), Manrope (Display) */
:root {
  /* Core Colors */
  --primary: #00677D;
  --primary-hover: #004e5f;
  --primary-container: #5AC8E8; /* Cyan */
  --on-primary: #FFFFFF;
  
  --surface: #F3F4F6; /* Light gray page background */
  --surface-white: #FFFFFF;
  --surface-dark: #1A1A1A; /* Extremely dark grays/blacks */
  --surface-darker: #131313;
  --surface-teal: #0C4E5E; /* Dark teal for the contact form left panel */
  
  --text-main: #1C1B1B;
  --text-muted: #6B7280;
  --text-white: #FFFFFF;
  --text-white-muted: rgba(255, 255, 255, 0.7);
  
  /* Accents */
  --accent-orange: #FDA759;
  --accent-red: #E11D48; /* For the emergency dot */
  --accent-green: #A3E635; /* Logo square */
  
  /* Borders & Shadows */
  --border-light: #E5E7EB;
  --border-white-alpha: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.05);
  --shadow-ambient: 0 20px 40px rgba(28, 27, 27, 0.08);

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 800; }
a { text-decoration: none; color: inherit; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-cyan { color: var(--primary-container); }
.text-white { color: var(--text-white) !important; }
.bg-green { background-color: var(--accent-green) !important; color: #111 !important; }
.bg-cyan { background-color: var(--primary-container); color: var(--on-primary); }
.bg-blue { background-color: #93C5FD; color: #1E3A8A; }
.bg-orange { background-color: var(--accent-orange); color: #7C2D12; }

/* Section Titles (Common styling shown in image) */
.section-title {
  margin-bottom: 3rem;
}
.section-title i {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 2.25rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.section-title i::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-container);
}

/* Base Buttons */
.btn-primary, .btn-outline, .btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--text-white);
}
.btn-outline:hover { background-color: var(--text-white); color: var(--surface-dark); }

.btn-call {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.icon-diamond { font-size: 0.75rem; color: var(--text-white); }

/* --- HEADER --- */
.main-header {
  background-color: var(--surface-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-img-footer {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  position: relative;
  padding-bottom: 0.25rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.25rem;
}
.nav-menu a.active {
  color: var(--primary-container);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background-color: var(--primary-container);
}

/* --- HERO --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--surface-dark);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fallback dark gradient simulating the image */
  background: linear-gradient(135deg, #18282b 0%, #111a1f 100%);
  overflow: hidden;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
.hero-title {
  color: var(--text-white);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  color: var(--text-white-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* --- SERVICES --- */
.services-section {
  padding: 5rem 0;
  background-color: var(--surface-white);
}
.container-content {
  max-width: 1100px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 
    "fugas desat"
    "insta emerg";
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background-color: var(--surface);
  border-radius: 1rem;
  padding: 2.5rem;
  overflow: hidden;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  z-index: 2;
  position: relative;
  max-width: 90%;
}
.icon-top {
  margin-bottom: 1.5rem;
}

/* Water drop background watermark */
.icon-bg-water {
  position: absolute;
  bottom: -10%;
  right: -5%;
  opacity: 0.4;
  width: 120px;
  height: 120px;
  z-index: 1;
}

/* Emergency Card Specifics */
.card-emergencia {
  background-color: #E0F2FE; /* Light cyan/blue background */
  border: 1px solid #BAE6FD;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-emergencia .emergency-content {
  flex: 1;
  padding-right: 2rem;
}
.card-emergencia h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--surface-dark);
}
.red-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}
.card-emergencia p { color: #334155; margin-bottom: 1.5rem; }
.btn-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.emergency-block {
  width: 120px;
  height: 120px;
  background-color: var(--primary-container);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 4rem;
}

/* --- BENEFITS MIXED RIBBON --- */
.benefits-ribbon {
  background-color: var(--surface-dark);
  padding: 4rem 0;
  color: var(--text-white);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.benefit-item .icon-circle {
  width: 56px;
  height: 56px;
  background-color: rgba(90, 200, 232, 0.1);
  color: var(--primary-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.benefit-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.benefit-item p {
  font-size: 0.875rem;
  color: var(--text-white-muted);
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--surface);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background-color: var(--surface-white);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.stars { color: var(--accent-orange); letter-spacing: 2px; }
.quote-icon {
  font-size: 4rem;
  color: #E0F2FE;
  line-height: 0.5;
  font-family: serif;
}
.quote-text {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-main);
  flex-grow: 1;
  margin-bottom: 2rem;
}
.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.author-details h5 { font-size: 0.9375rem; font-family: var(--font-body); }
.author-details span { font-size: 0.8125rem; color: var(--text-muted); }

/* --- CONTACT DUAL PANEL --- */
.contact-section {
  padding: 5rem 0 8rem;
  background-color: var(--surface-white);
}
.contact-wrapper {
  display: flex;
  background-color: var(--surface-white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
}
.contact-info {
  flex: 1;
  background-color: var(--surface-teal);
  color: var(--text-white);
  padding: 4rem;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info h2 i {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 2.25rem;
  color: var(--text-white);
}
.contact-desc { color: rgba(255,255,255,0.8); margin-bottom: 3rem; font-size: 1rem; }
.contact-list { list-style: none; margin-bottom: 3rem; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.contact-list svg { opacity: 0.8; }
.social-icons { display: flex; gap: 1rem; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.icon-btn:hover { background-color: var(--primary-container); }

.contact-form {
  flex: 1;
  padding: 4rem;
  background-color: var(--surface-white);
}
.form-row {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem;
}
.form-group { flex: 1; margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--surface);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-container);
}
.btn-submit {
  width: 100%;
  background-color: var(--surface-dark);
  color: var(--text-white);
  padding: 1.25rem;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-submit:hover { background-color: #000; }
.custom-arrow { font-size: 1.5rem; line-height: 0; }

/* --- FOOTER --- */
.site-footer {
  background-color: var(--surface-darker);
  color: var(--text-white);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.brand-desc {
  color: var(--text-white-muted);
  font-size: 0.875rem;
  margin-top: 1.5rem;
  max-width: 90%;
}
.footer-link-col h4, .footer-contact-details h4 {
  font-size: 0.8125rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.footer-link-col ul { list-style: none; }
.footer-link-col ul li { margin-bottom: 1rem; }
.footer-link-col a {
  color: var(--text-white-muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s;
}
.footer-link-col a:hover {
  color: var(--text-white);
  text-decoration-color: var(--primary-container);
}
.footer-contact-details p {
  color: var(--text-white-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.phone-link a {
  font-size: 1.25rem;
  color: var(--primary-container);
  font-weight: 700;
}
.footer-social-small { display: flex; gap: 0.5rem; }
.circle-icon {
  width: 32px; height: 32px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-white-alpha);
  color: var(--text-white-muted);
  font-size: 0.75rem;
}
.badge-verified {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shield-circle {
  width: 20px;
  height: 20px;
  background-color: var(--text-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Form Message Styles */
.form-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
}
.msg-success {
  display: block;
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #31C48D;
}
.msg-error {
  display: block;
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #F98080;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--surface-dark);
  color: var(--text-white);
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-content p { font-size: 0.875rem; margin: 0; text-align: left; }
.cookie-content a { text-decoration: underline; color: var(--primary-container); }

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--primary-hover); transform: translateY(-3px); }

/* Responsiveness */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: 1fr; grid-template-areas: "fugas" "desat" "insta" "emerg"; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-wrapper { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .btn-call { display: none; } /* Ocultamos momentáneamente si no hay espacio, pero es mejor mostrarlo: */
  .btn-call { display: flex; padding: 0.5rem; font-size: 0.8rem; }
  
  .nav-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--surface-white);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .nav-menu.open { left: 0; display: flex; }
  .nav-menu a { font-size: 1.25rem; margin-bottom: 1.5rem; }
  
  .hero-title { font-size: 2.5rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; text-align: center; }
  .cookie-content p { text-align: center; }
  .cookie-content button { width: 100%; }
}
