/* css/styles.css - Header Blanco y Paleta adaptada a Logo-IP.png */
:root {
  /* Paleta extraída del Logo:
     - Azul Marino Principal ("Industrias"): #173753
     - Dorado Bronce / Ocre de Acento ("PURUHA"): #b69254
     - Dorado Hover / Interactivo: #9e7c42
     - Azul Marino Oscuro (Fondos contrastantes): #0f2438
  */
  --navy-primary: #173753;
  --navy-dark: #0f2438;
  --gold-accent: #b69254;
  --gold-hover: #9e7c42;

  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;

  --accent: var(--gold-accent);
  --accent-hover: var(--gold-hover);
  --dark-corp: var(--navy-primary);
  --dark-glass: rgba(255, 255, 255, 0.95);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ==========================================================================
   Header & Navbar (Blanco Limpio para destacar el Logo)
   ========================================================================== */
header {
  background-color: var(--bg-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold-accent);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 60px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-accent);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--navy-primary);
}

/* Dropdown Menu (Submenú adaptado al header blanco) */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-white);
  min-width: 220px;
  box-shadow: 0px 10px 25px rgba(23, 55, 83, 0.15);
  z-index: 1000;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--gold-accent);
  overflow: hidden;
  top: 100%;
}

.dropdown-content a {
  color: var(--navy-primary) !important;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: var(--navy-primary);
  color: #ffffff !important;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 10rem 2rem 8rem;
  background: radial-gradient(circle at top right, #1e3a5f 0%, var(--navy-primary) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 3rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.hero-highlight {
  color: var(--gold-accent);
  font-weight: 800;
  text-shadow: 0 0 40px rgba(182, 146, 84, 0.4);
}

.text-white {
  color: #ffffff;
}

/* Slider Section */
.services-slider {
  width: 100%;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--navy-dark);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 500px;
  background: var(--navy-dark);
}

.slide-img {
  flex: 0 0 66%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-content {
  flex: 0 0 34%;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  background: var(--navy-dark);
}

.slide h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.slide.hosting h2 {
  color: var(--gold-accent);
}

.slide p {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.slide-action-btn {
  margin-top: 1rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy-primary);
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background-color: var(--gold-accent);
  color: #ffffff;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* Philosophy */
.philosophy {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--navy-primary);
}

.philosophy p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

/* Testimonials */
.testimonials {
  padding: 5rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--navy-primary);
}

.testimony-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimony-card {
  background: var(--bg-light);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(23, 55, 83, 0.05);
  transition: var(--transition);
  border-top: 3px solid var(--gold-accent);
}

.testimony-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(23, 55, 83, 0.1);
}

.testimony-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.testimony-author {
  font-weight: 700;
  color: var(--navy-primary);
}

/* Contact Page */
.contact-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h2,
.contact-form-container h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--navy-primary);
}

.info-block {
  margin-bottom: 2rem;
}

.info-block strong {
  display: block;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(23, 55, 83, 0.06);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--navy-primary);
}

.form-control {
  padding: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 55, 83, 0.15);
}

.btn {
  padding: 1.2rem 2.5rem;
  background-color: var(--gold-accent);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(182, 146, 84, 0.3);
}

.btn:hover {
  background-color: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(182, 146, 84, 0.4);
  color: #ffffff;
}

/* Footer */
footer {
  background-color: var(--navy-dark);
  color: #ffffff;
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 3px solid var(--gold-accent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: left;
}

.footer-section h3 {
  color: var(--gold-accent);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--gold-accent);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
  color: #ffffff;
}

.social-icons a:hover {
  background-color: var(--gold-accent);
  color: #ffffff;
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Responsive (Menú Móvil) */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    clip-path: circle(0% at 50% -20%);
    transition: all 0.4s ease-in-out;
    border-bottom: 2px solid var(--gold-accent);
  }

  .nav-links.active {
    clip-path: circle(150% at 50% -20%);
  }

  .dropdown-content {
    position: static;
    display: none;
    background-color: var(--bg-light);
    box-shadow: none;
    border: none;
    margin-top: 0.5rem;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .slide h2 {
    font-size: 2rem;
  }

  .slide {
    flex-direction: column;
    min-height: auto;
  }

  .slide-img {
    flex: 0 0 300px;
    width: 100%;
  }

  .slide-content {
    flex: 0 0 auto;
    width: 100%;
    padding: 3rem 1.5rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-popup {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
}

.whatsapp-popup.active {
  display: block;
}

.whatsapp-popup-header {
  background-color: var(--navy-primary);
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.whatsapp-popup-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.whatsapp-popup-body {
  padding: 20px;
  text-align: center;
}

.whatsapp-popup-body p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.whatsapp-reply-btn {
  display: inline-block;
  background-color: #25d366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.whatsapp-reply-btn:hover {
  background-color: #1ebe5d;
}

/* SAS Section */
.sas-section {
  padding: 80px 20px;
  background-color: #ffffff;
  overflow: hidden;
}

.sas-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.sas-image,
.sas-text {
  flex: 1;
}

.sas-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

.sas-text h2 {
  font-size: 2rem;
  color: var(--navy-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.sas-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.scroll-reveal {
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease;
  will-change: transform, opacity;
}

.reveal-left {
  transform: translateX(-100px);
}

.reveal-right {
  transform: translateX(100px);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateX(0);
}

.sas-reverse {
  background-color: var(--bg-light);
}

@media (min-width: 769px) {
  .sas-reverse .sas-container {
    flex-direction: row;
  }
}

@media (max-width: 768px) {

  .sas-container,
  .sas-reverse .sas-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(50px);
  }
}

/* Accordion Section */
.sas-faq-section {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

.sas-faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.sas-faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.sas-faq-header h2 {
  font-size: 2rem;
  color: var(--navy-primary);
  margin-bottom: 15px;
}

.sas-faq-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-primary);
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body {
  padding: 0 25px 20px 25px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.accordion-item.is-open {
  border-color: var(--gold-accent);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
  color: var(--gold-accent);
}

/* Slideshow Section: Refrán */
.refran-slideshow-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background-color: #000;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slideshow-slide.active {
  opacity: 1;
  z-index: 2;
}

.refran-overlay-caption {
  position: absolute;
  bottom: 50px;
  left: 5%;
  z-index: 10;
  max-width: 600px;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.refran-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.refran-text {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  font-style: italic;
}

@media (max-width: 768px) {
  .refran-slideshow-section {
    height: 60vh;
  }

  .refran-overlay-caption {
    bottom: 30px;
    left: 20px;
    right: 20px;
  }

  .refran-title {
    font-size: 2.2rem;
  }

  .refran-text {
    font-size: 1.1rem;
  }
}