/* 
  Plásticos Continental - Rafia Web Modernized
  Ocean-Blue Identity Theme (Matching Contacto Directo Tone)
  With Full Uncropped Native Logo & Glassmorphism
*/

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

:root {
  /* Ocean-Blue Identity Palette (Lighter, Vibrant Ocean Blue) */
  --bg-dark-navy: #1b4169;
  --bg-navy-mid: #255281;
  --bg-navy-light: #2c6399;

  --sidebar-bg: linear-gradient(180deg, #1a3e64 0%, #234f7c 100%);
  --hero-bg: linear-gradient(135deg, #1a3e64 0%, #265586 50%, #2c6399 100%);

  --primary-blue: #234f7c;
  --accent-blue: #0288d1;
  --accent-cyan: #00e5ff;
  --accent-orange: #ff7a00;
  --whatsapp-color: #25d366;

  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f0f6fc;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-white: #ffffff;
  --text-orange: #ff7a00;

  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --sidebar-width: 320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.3;
}

.text-orange {
  color: var(--accent-orange) !important;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* Layout */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 5px 0 25px rgba(26, 62, 100, 0.25);
  overflow-y: auto;
}

#main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* Sidebar Top Brand - LOGO SIN BORDES NI RECUADRO BLANCO */
.sidebar-top {
  padding: 2rem 1.5rem 1.5rem;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* LOGO NATIVO TRANSPARENTE */
.brand-logo-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Navigation */
#nav {
  margin-top: 1.25rem;
  flex-grow: 1;
}

#nav ul {
  list-style: none;
}

#nav ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.75rem;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
}

#nav ul li a:hover,
#nav ul li a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--accent-orange);
}

#nav ul li a .nav-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

/* Sidebar Bottom */
.sidebar-bottom {
  padding: 1.5rem 1.75rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.sidebar-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.social-btn:hover {
  background: var(--whatsapp-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.sidebar-copyright {
  font-size: 0.78rem;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.4;
}

/* Mobile Header Bar */
.mobile-header-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: #1a3e64;
  color: #fff;
  z-index: 1100;
  padding: 0 1.25rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-brand img {
  height: 44px;
  width: auto;
  background: transparent;
}

.mobile-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* BANNER DE INTRODUCCIÓN GRANDASO CON LOGO EN CABECERA */
.grand-logo-banner {
  width: 100%;
  background: linear-gradient(180deg, #153354 0%, #1a3e64 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 2px solid rgba(255, 122, 0, 0.35);
}

.grand-logo-img {
  max-width: 480px;
  width: 90%;
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.3));
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.grand-tagline {
  font-size: 1.1rem;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Sections */
.section {
  padding: 5rem 3.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background: var(--hero-bg);
  color: #ffffff;
}

.section-dark h2, .section-dark p {
  color: #ffffff;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 0.38rem 1.1rem;
  background: rgba(255, 122, 0, 0.12);
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 122, 0, 0.3);
}

.section-dark .section-tag {
  background: rgba(255, 122, 0, 0.2);
  color: #ff9800;
  border-color: rgba(255, 152, 0, 0.4);
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  color: #1a3e64;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.section-dark .section-subtitle {
  color: #e2e8f0;
}

/* Hero Section (Fiel a la captura enviada) */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.4rem;
  background: rgba(255, 122, 0, 0.15);
  border: 1px solid rgba(255, 122, 0, 0.4);
  border-radius: 50px;
  color: #ff9800;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  background-color: transparent;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: #ffffff;
  transform: translateY(-3px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  background-color: var(--whatsapp-color);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background-color: #22c55e;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.hero-stat-box strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.hero-stat-box span {
  font-size: 0.78rem;
  color: #cbd5e1;
  text-transform: uppercase;
  font-weight: 600;
}

/* Tarjeta Glassmorphism de Contacto en Hero */
.glass-contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--glass-shadow);
}

.glass-card-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-contact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
}

.glass-contact-item:last-child {
  border-bottom: none;
}

.glass-contact-item span {
  color: #cbd5e1;
}

.glass-contact-item strong, .glass-contact-item a {
  color: #ffffff;
  font-weight: 600;
}

.glass-contact-item a:hover {
  color: var(--accent-orange);
}

/* Products Grid (Combinando Fondo Blanco) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.2rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(26, 62, 100, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 30px rgba(26, 62, 100, 0.14);
  border-color: var(--accent-orange);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 235px;
  background: #f1f5f9;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.38rem 0.95rem;
  background: #1a3e64;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid var(--accent-orange);
}

.product-body {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: #1a3e64;
}

.product-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.btn-card-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(37, 211, 102, 0.08);
  color: #15803d !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 211, 102, 0.25);
  transition: all 0.25s ease;
}

.btn-card-wa:hover {
  background: var(--whatsapp-color);
  color: #ffffff !important;
  border-color: var(--whatsapp-color);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.04rem;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

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

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-orange);
  display: block;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Sectores Grid */
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.85rem;
}

.sector-card {
  background: var(--bg-card);
  padding: 2.2rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(26, 62, 100, 0.05);
  transition: all 0.25s ease;
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(26, 62, 100, 0.12);
  border-color: var(--accent-orange);
}

.sector-icon {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  display: block;
}

.sector-title {
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
  color: #1a3e64;
}

.sector-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Contacts Section */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.85rem;
  margin-bottom: 3.5rem;
}

.contact-card {
  background: var(--bg-card);
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(26, 62, 100, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.contact-card-title {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
  color: #1a3e64;
}

.contact-card-content {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact-card-content a {
  color: var(--text-main);
  font-weight: 700;
}

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

/* Map Wrappers */
.map-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(26, 62, 100, 0.08);
}

.map-controls {
  padding: 1.25rem 1.75rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.map-controls label {
  font-weight: 700;
  font-size: 0.98rem;
  color: #1a3e64;
}

.map-controls select {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  background: #ffffff;
  color: #1a3e64;
  cursor: pointer;
}

.map-iframe-box iframe {
  width: 100%;
  height: 440px;
  border: 0;
}

/* Footer Bar */
.footer-bar {
  background: #122b46;
  color: #cbd5e1;
  padding: 2.2rem;
  text-align: center;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border-radius: var(--radius-md);
}

.visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: #e2e8f0;
}

.visitor-badge strong {
  color: var(--accent-orange);
  font-size: 1.05rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 280px;
  }
  .hero-wrapper {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  #header {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 290px;
  }
  
  #header.open {
    transform: translateX(0);
  }
  
  #main {
    margin-left: 0;
    padding-top: 68px;
  }
  
  .mobile-header-bar {
    display: flex;
  }
  
  .section {
    padding: 3.5rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
}
