@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
  /* Corporate Colors */
  --primary: #FF5100;
  /* Orange */
  --primary-hover: #ff7a3d;
  --corp-blue: #004B87;
  /* Corporate Blue */
  --corp-green: #00A651;
  /* Corporate Green */

  --secondary: var(--corp-blue);
  /* Use corporate blue for headings instead of dark gray */
  --text-dark: #333333;
  --text-light: #F8F5F4;
  --bg-color: #F8F5F4;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

p {
  text-align: justify;
}

.text-center,
.text-center p,
.section-subtitle,
.hero-content p,
.footer-bottom p,
.portygas-desc {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
  background: rgba(0, 75, 135, 0.95);
  /* Corporate Blue */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: none;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 60px;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  /* Make text white for transparent background */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Ensure readability */
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a.highlight {
  background-color: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-shadow: none;
}

.nav-links li a.highlight::after {
  display: none;
}

.nav-links li a.highlight:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 81, 0, 0.3);
}

/* Hero Section - CSS Slider */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  margin-top: 0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-slider li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: kenBurnsFade 20s infinite;
}

.hero-slider li:nth-child(1) { animation-delay: 0s; }
.hero-slider li:nth-child(2) { animation-delay: 5s; }
.hero-slider li:nth-child(3) { animation-delay: 10s; }
.hero-slider li:nth-child(4) { animation-delay: 15s; }

@keyframes kenBurnsFade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  10% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  35% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 24, 16, 0.5); /* Semi-transparent brown/dark overlay */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Page Hero (Internal Pages) */
.page-hero {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 75, 135, 0.8), rgba(0, 75, 135, 0.8)), url('../img/foto_2.webp') center/cover no-repeat;
  color: var(--text-light);
  padding: 0 5%;
  margin-top: 0;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-hero p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Internal Content Utilities */
.internal-content {
  max-width: 900px;
  margin: 0 auto;
}

.text-left {
  text-align: left;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.corp-title {
  color: var(--corp-blue);
}

/* Document List styling */
.document-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.document-list.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.doc-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.doc-link i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: var(--transition);
}

.doc-link:hover {
  background: white;
  border-color: var(--primary);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.doc-link:hover i {
  color: var(--corp-green);
}

/* Rules List */
.rules-list {
  list-style-type: none;
}

.rules-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li strong {
  color: var(--corp-blue);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.rules-list li a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.rules-list li a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 81, 0, 0.4);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 81, 0, 0.5);
}

/* Editable Sections */
.section {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  /* Fix alignment */
}

.info-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--corp-blue);
}

.info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.info-card p {
  color: #555;
  font-size: 1.1rem;
}

/* Platforms / Services */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: stretch;
  /* Fix alignment */
}

.card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary);
}

.card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Statistics Section */
.stats-section {
  padding: 4rem 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-card {
  padding: 2rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Quick Links Section */
.quick-links-section {
  background-color: white;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-color);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.quick-link-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 81, 0, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.quick-link-card:hover .quick-link-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.quick-link-card h4 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* PortyGas Section */
.portygas-section {
  padding: 5% 5%;
  background-color: var(--bg-color);
}

.portygas-banner {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--corp-blue) 0%, #003666 100%);
  /* Corporate Blue */
  border-radius: 24px;
  padding: 4rem 3rem;
  box-shadow: 0 20px 40px rgba(0, 75, 135, 0.2);
  /* Blue shadow */
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.portygas-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  z-index: 1;
}

.portygas-content {
  position: relative;
  z-index: 2;
  color: white;
}

.portygas-title {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.portygas-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.portygas-image {
  position: relative;
  z-index: 2;
  text-align: center;
}

.portygas-image img {
  max-width: 100%;
  max-height: 250px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  background: #1ebc56;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--text-light);
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: left;
}

.footer-col h5 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #bbb;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #888;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
    /* Handle mobile menu properly in real app */
  }
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--corp-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-details-card {
  border-radius: 20px;
}

.contact-list {
  list-style-type: none;
  text-align: left;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-list i {
  color: var(--corp-green);
  font-size: 1.5rem;
  margin-right: 1.5rem;
  margin-top: 0.2rem;
  width: 24px;
  text-align: center;
}

.contact-list strong {
  display: block;
  color: var(--corp-blue);
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--primary);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   ANIMATED LOGOS (MARQUEE)
   ========================================= */
.logos-section {
  padding: 3rem 0;
  background-color: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.logos-section h2 {
  text-align: center;
  color: var(--corp-blue);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
}

/* Fade margins for infinite effect */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  /* Start offscreen */
  animation: marquee 30s linear infinite;
}

/* Pause on hover */
.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content img {
  height: 70px;
  width: auto;
  margin: 0 3rem;
  vertical-align: middle;
  filter: grayscale(100%) opacity(0.7);
  transition: var(--transition);
}

.marquee-content img:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .marquee-content img {
    height: 50px;
    margin: 0 1.5rem;
  }
}

/* =========================================
   PDF VIEWER SECTION
   ========================================= */
.pdf-viewer-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.pdf-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.pdf-embed {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .pdf-embed {
    height: 450px;
  }
}