:root {
  --color-primary-dark: #0a0c10;
  --color-secondary-dark: #12151c;
  --color-shark-action: #1B3B5A; /* Azul Tiburón CTA */
  --color-shark-action-hover: #26517a;
  --color-shark-light: #447294;
  --color-accent-gold: #e9a13a;
  --color-accent-orange: #d84727;
  --color-text-light: #f4f6f8;
  --color-text-muted: #a0a5ab;
  --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
  --transition-fast: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 100px; /* offset para el navbar fixed */
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* Botones (CTAs) */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  border: none;
  background-color: var(--color-shark-action);
  color: white;
  box-shadow: 0 4px 15px rgba(27, 59, 90, 0.5);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
  background: rgba(255,255,255,0.1); transition: all var(--transition-fast); z-index: 1;
}
.btn:hover::before { width: 100%; }
.btn-primary:hover {
  background-color: var(--color-shark-action-hover);
  box-shadow: 0 6px 20px rgba(27, 59, 90, 0.7);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-accent-gold);
  border: 2px solid var(--color-accent-gold);
  box-shadow: none;
}
.btn-outline:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-primary-dark);
}

/* Ribete / Ribbon Head */
.ribbon-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Let clicks pass through background */
}
.ribbon-banner {
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, #b87a22 100%);
  color: var(--color-primary-dark);
  padding: 15px 60px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  display: inline-block;
  margin-top: 10px;
  pointer-events: auto;
  border-top: 3px solid #ffe3b0;
  border-bottom: 3px solid #75470b;
}
.ribbon-banner::before, .ribbon-banner::after {
  content: '';
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
}
.ribbon-banner::before {
  left: -20px;
  border-right: 20px solid #b87a22;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
}
.ribbon-banner::after {
  right: -20px;
  border-left: 20px solid #b87a22;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
}
.ribbon-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 3px;
  margin: 0;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Navbar general secundaria */
.navbar {
  position: fixed;
  top: 40px; /* Debajo del ribete visualmente */
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.95);
  border-bottom: 2px solid var(--color-shark-action);
}
.nav-links {
  display: flex;
  gap: 3rem;
  margin-top: 20px; /* espacio para no chocar con el ribete central */
}
.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-accent-gold);
}

/* Home Hero Section */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,12,16,0.6);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 2rem;
}

/* Imagen Circular Home */
.circular-img-container {
  width: 350px;
  height: 350px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--color-accent-gold);
  box-shadow: 0 0 40px rgba(233, 161, 58, 0.4), inset 0 0 20px rgba(0,0,0,1);
  background-color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.circular-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General Pages Content */
.page-header {
  padding: 5rem 5% 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-secondary-dark) 0%, var(--color-primary-dark) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-title {
  font-size: 3.5rem;
  color: var(--color-text-light);
}

section { padding: 4rem 5%; }
.section-title { font-size: 3rem; text-align: center; margin-bottom: 3rem; color: var(--color-text-light); }

/* Flex & Grid layouts from original */
.about-grid {
  display: flex; gap: 4rem; flex-wrap: wrap; align-items: center;
}
.about-grid > div { flex: 1; min-width: 300px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.portfolio-item {
  height: 300px; border-radius: 8px; overflow: hidden; position: relative;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.8);
}
.portfolio-item:hover img { transform: scale(1.1); filter: brightness(1); }

.contact-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1000px; margin: 0 auto;
}
.contact-form {
  background: var(--color-secondary-dark); padding: 3rem; border-radius: 12px;
}
.form-group { margin-bottom: 1.5rem; }
.form-control {
  width: 100%; padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: white; border-radius: 4px;
}
.form-control:focus { outline: none; border-color: var(--color-shark-action); }

footer {
  background-color: #050608; padding: 2rem; text-align: center; margin-top: 4rem;
}

@media (max-width: 768px) {
  .nav-links { gap: 1rem; font-size: 0.8rem; }
  .circular-img-container { width: 250px; height: 250px; }
  .contact-container { grid-template-columns: 1fr; }
  .ribbon-banner { padding: 10px 30px; }
  .ribbon-title { font-size: 1.5rem; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
