/*
 Theme Name:   SVCORP Theme (Hello Elementor Child)
 Theme URI:    https://svcorp.cl
 Description:  Plantilla hija de Hello Elementor desarrollada a medida para SVCORP.
 Author:       Branding Digital
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  svcorp
*/

:root {
  /* Colors */
  --sv-orange-primary: #F2600C;
  --sv-orange-secondary: #F2921D;
  --sv-yellow-accent: #F2C849;
  --sv-brown-dark: #8C3B07;
  --sv-bg-dark: #1E1B1B;
  --sv-bg-darker: #401201; /* Utilizado para gradientes profundos / Hero */
  --sv-bg-contact: #2A1107; /* Color de fondo sección contacto */
  --sv-text-light: #F5F5F5;
  --sv-text-dark: #1E1B1B;
  --sv-text-muted: #8E8E8E;
  
  /* Layout */
  --sv-container-width: 1280px;
  --sv-gap-large: 64px;
  --sv-gap-md: 32px;
  --sv-gap-sm: 16px;
  --sv-border-radius: 8px;
  
  /* Typography */
  --font-inter: 'Inter', sans-serif;
}

/* =========================================
   RESET & BASE 
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-inter);
  color: var(--sv-text-dark);
  line-height: 1.6;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* =========================================
   UTILITIES & CONTAINERS
   ========================================= */
.sv-container {
  max-width: var(--sv-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Placeholders for Development */
.placeholder-img {
  background-color: #EEEEEE;
  border: 1px dashed #CCCCCC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border-radius: var(--sv-border-radius);
  position: relative;
  overflow: hidden;
}

.placeholder-img.feature-img {
  width: 100%;
  height: 400px;
}

.placeholder-logo {
  font-weight: 600;
  color: #AAAAAA;
  text-transform: uppercase;
  font-size: 14px;
  max-width: 120px;
}

/* =========================================
   BUTTONS
   ========================================= */
.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px; /* Figma showed slight rounding */
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  border: none;
}

.sv-btn-primary {
  background-color: var(--sv-orange-primary);
  color: white;
}

.sv-btn-primary:hover {
  background-color: var(--sv-brown-dark);
}

.sv-btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sv-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sv-btn-block {
  width: 100%;
}

.sv-icon-play {
  margin-right: 8px;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.sv-header {
  position: absolute; /* Overlaps hero */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  background: white; /* Header is white according to design */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Optional subtile shadow */
}

/* Update: Header in design has a white background */
.sv-header {
    position: relative;
}

.sv-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sv-header-right {
  display: flex;
  align-items: center;
  gap: 40px; /* Space between menu and CTA */
}

.sv-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.sv-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--sv-text-dark);
}

.sv-nav a:hover {
  color: var(--sv-orange-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.sv-hero {
  position: relative;
  background-color: var(--sv-bg-darker); /* Fallback */
  background-image: linear-gradient(rgba(30,27,27,0.7), rgba(30,27,27,0.7)); /* For Elementor, background image will go behind this overlay */
  color: white;
  padding: 200px 0 120px 0; /* Updated to push content down and naturally left-align */
  min-height: 600px;
}

.sv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px; /* Keep text constrained to left side */
}

.sv-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  margin-bottom: 24px;
}

.sv-dot {
  width: 8px;
  height: 8px;
  background-color: #4CAF50; /* Green dot indicating active/eco */
  border-radius: 50%;
  margin-right: 8px;
}

.sv-hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.sv-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.5;
}

.sv-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================
   CLIENTS ROW
   ========================================= */
.sv-clients {
  padding: 48px 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
}

.sv-clients-title {
  color: var(--sv-orange-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.sv-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
}

.sv-marquee-content {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: marquee 30s linear infinite;
  min-width: max-content;
}

.sv-marquee-content img {
  width: 150px;
  max-height: 70px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.sv-marquee-content img:hover {
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   DARK SECTIONS & BENTO GRID
   ========================================= */
.dark-section {
  background-color: var(--sv-bg-dark);
  color: white;
  padding: 96px 0;
}

.sv-services-bg {
  background-color: #4A4643; /* Background for services section */
  color: white;
  padding: 96px 0;
}

.sv-services-bg .dark-card {
  background-color: #2F2C2A; /* Contrast card color */
  border-color: rgba(255, 255, 255, 0.08);
}

.sv-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.sv-section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sv-section-header p {
  color: var(--sv-text-muted);
  max-width: 500px;
  font-size: 18px;
}

.sv-link-accent {
  color: var(--sv-yellow-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sv-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--sv-border-radius);
  transition: background 0.3s ease;
}
.sv-link-accent:hover .sv-icon-btn {
  background: rgba(255, 255, 255, 0.15);
}

.sv-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dark-card {
  background-color: #272424; /* Slightly lighter than bg-dark */
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--sv-border-radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.sv-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  font-size: 32px;
  color: white;
}

.dark-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.dark-card p {
  color: var(--sv-text-muted);
  margin-bottom: auto; /* Pushes footer down */
  min-height: 80px;
}

.sv-card-divider {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 24px 0 16px 0;
}

.sv-card-footer {
  font-weight: 600;
  font-size: 14px;
}

.accent-text { color: var(--sv-yellow-accent); }
.accent-highlight { color: #F2921D; }

/* Bento Grid */
.sv-grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.sv-bento-item {
  border-radius: var(--sv-border-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Spans based on 12-col grid */
.sv-bento-large { grid-column: span 8; min-height: 400px; }
.sv-bento-quote { grid-column: span 4; justify-content: center; }
.sv-bento-stat  { grid-column: span 5; }
.sv-bento-medium{ grid-column: span 7; min-height: 350px;}

.image-bg {
  background-color: #333;
}

.bottom-content {
  margin-top: auto;
  padding: 40px;
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.sv-badge-orange { background-color: var(--sv-orange-primary); color: white; border-radius: 8px; padding: 4px 12px;}
.sv-badge-green  { background-color: #0E855D; color: white; border-radius: 8px; padding: 4px 12px; }

.sv-bento-item h3 { font-size: 32px; margin: 12px 0; }
.sv-bento-item p { color: rgba(255,255,255,0.8); }

.sv-quote-icon {
  font-size: 64px;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  font-family: serif;
  margin-bottom: -10px;
}

.sv-quote-text {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.sv-stat-block { margin-top: 24px; }
.sv-stat-number {
  font-size: 56px;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.sv-stat-unit {
  font-size: 24px;
  color: var(--sv-orange-primary);
}
.sv-stat-label {
  font-size: 12px;
  color: var(--sv-text-muted);
  letter-spacing: 1px;
}

.big-stat .sv-stat-number { font-size: 80px; }
.sv-divider { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 32px 0; }
.sv-quote-small { font-size: 16px; margin-bottom: 16px; font-style: italic;}
.sv-author { font-size: 14px; color: var(--sv-text-muted); }

/* =========================================
   FEATURES SECTIONS
   ========================================= */
.sv-py-large { padding: 96px 0; }
.bg-light { background-color: #F8F9FA; }

.sv-flex-row {
  display: flex;
  align-items: center;
  gap: 64px;
}
.reverse-row { flex-direction: row-reverse; }

.sv-feature-image { flex: 1; position: relative; }
.sv-feature-content { flex: 1; }

.sv-title-orange {
  color: var(--sv-orange-primary);
  font-size: 40px;
  margin-bottom: 24px;
}

.sv-feature-content .sv-text-light {
  color: #555; /* Note: class name reused, but for light bg it should be dark text */
  font-size: 18px;
  margin-bottom: 32px;
}

.sv-check-list { list-style: none; }
.sv-check-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--sv-text-dark);
}
.sv-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sv-check-icon img {
  width: 100%;
  height: auto;
}

.sv-tag-float {
  position: absolute;
  bottom: 12%;
  right: 10%;
  background: var(--sv-bg-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Añadir ligera sombra al propio tag */
}
.sv-tag-dark { right: auto; left: 10%; }

.sv-link-underline {
  color: var(--sv-orange-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.sv-contact {
  background-color: var(--sv-bg-contact);
  color: white;
  padding: 96px 0;
}

.align-start { align-items: flex-start; }

.sv-contact-info { flex: 1; padding-right: 48px; }
.sv-contact-form {
  flex: 1;
  background-color: #381A0E; /* Slightly lighter brown */
  padding: 48px;
  border-radius: var(--sv-border-radius);
}

.sv-subtitle-orange { color: var(--sv-orange-primary); margin-bottom: 16px; }
.sv-contact-info h2 { font-size: 48px; line-height: 1.1; margin-bottom: 24px; }
.sv-contact-info p { color: rgba(255,255,255,0.8); margin-bottom: 48px; font-size: 18px;}

.sv-contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.sv-icon-box {
  width: 48px; height: 48px;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--sv-border-radius);
  display: flex; align-items: center; justify-content: center;
  margin-right: 16px;
  font-size: 20px;
}
.sv-contact-method span { display: block; font-size: 14px; color: rgba(255,255,255,0.6); }
.sv-contact-method strong { font-size: 20px; }

.sv-form-row { display: flex; gap: 24px; }
.sv-form-group { margin-bottom: 24px; width: 100%; }
.sv-form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}
.sv-form-group input, .sv-form-group select, .sv-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
}
.sv-form-group textarea { resize: vertical; }

/* =========================================
   BLOG / NEWS SECTION
   ========================================= */
.sv-blog { background-color: #FFFFFF; }

.sv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.sv-blog-card {
  background: #FFFFFF;
  border-radius: var(--sv-border-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sv-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.sv-blog-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f5f5f5;
  overflow: hidden;
}

.sv-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sv-blog-card:hover .sv-blog-image img {
  transform: scale(1.05);
}

.sv-blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--sv-orange-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.sv-blog-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sv-blog-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.sv-blog-content h3 {
  font-size: 20px;
  color: var(--sv-bg-dark); /* Dark text for light bg */
  margin-bottom: 16px;
  line-height: 1.4;
}

.sv-blog-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.sv-blog-link {
  color: var(--sv-orange-primary);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.sv-blog-link:hover {
  text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
.sv-footer {
  background-color: #000000;
  color: white;
  padding: 80px 0 40px;
}

.sv-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.sv-footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 24px;
}

.sv-social-links a {
  display: inline-flex;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  align-items: center; justify-content: center;
  margin-right: 8px;
}

.sv-footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
}

.sv-footer-col ul { list-style: none; }
.sv-footer-col li { margin-bottom: 12px; }
.sv-footer-col a { color: rgba(255,255,255,0.6); font-size: 15px; }
.sv-footer-col a:hover { color: white; }

.placeholder-map {
  background: #333;
  height: 150px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sv-map-pin { background: rgba(0,0,0,0.5); padding: 4px 12px; border-radius: 8px; font-size: 12px;}
.sv-address-small { font-size: 13px; color: rgba(255,255,255,0.5); }

.sv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.sv-footer-legal a { margin-left: 24px; color: rgba(255,255,255,0.5); }

/* =========================================
   VIDEO MODAL
   ========================================= */
.sv-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sv-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sv-modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-modal-overlay.active .sv-modal-container {
  transform: scale(1);
}

.sv-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: transparent;
  color: white;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.sv-modal-close:hover {
  opacity: 1;
}

.sv-modal-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sv-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sv-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
}

.sv-video-wrapper video {
  width: 100%;
  height: 100%;
  outline: none;
  object-fit: cover;
}

/* =========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================= */
@media (max-width: 1024px) {
  .sv-grid-layout { grid-template-columns: 1fr; }
  .sv-bento-large, .sv-bento-quote, .sv-bento-stat, .sv-bento-medium { grid-column: span 1; }
  .sv-services-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
  .sv-flex-row, .reverse-row { flex-direction: column; }
  .sv-contact .sv-flex-row { flex-direction: column; }
  .sv-contact-info { padding-right: 0; margin-bottom: 48px; }
  .sv-form-row { flex-direction: column; gap: 0; }
  .sv-services-grid { grid-template-columns: 1fr; }
  .sv-header-inner { flex-direction: column; gap: 16px; }
  .sv-header-right { flex-direction: column; gap: 16px; }
  .sv-nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .sv-hero h1 { font-size: 36px; }
  .sv-contact-form { padding: 24px; }
  .sv-blog-grid { grid-template-columns: 1fr; }
}