/* --- VARIABLES DE DISEÑO --- */
:root {
  /* Turquesa Oscuro (Profundidad y Seriedad) */
  --primary-color: #003840;

  /* Turquesa Brillante (Detalles y Llamadas a la acción) */
  --accent-color: #00bcd4;

  /* Colores Neutros */
  --bg-body: #ffffff;
  --bg-section: #f8f9fa;
  --bg-dark: #0d1b1e;

  /* Tipografía */
  --text-main: #1a1a1a;
  --text-muted: #595959;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Roboto', sans-serif;

  --max-width: 1300px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.8;
  background-color: var(--bg-body);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-line {
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  display: block;
  margin-top: 15px;
}

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

ul {
  list-style: none;
}

img {
  width: 100%;
  display: block;
}

/* --- COMPONENTES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-padding {
  padding: 100px 0;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: -1;
  transition: width 0.4s ease;
}

.btn:hover {
  color: #fff;
}

.btn:hover::before {
  width: 100%;
}

.btn-light {
  border-color: #fff;
  color: #fff;
}

.btn-light::before {
  background-color: #fff;
}

.btn-light:hover {
  color: var(--primary-color);
}

.btn-accent {
  border-color: var(--accent-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-accent-sent {
  opacity: 0;
}

.btn-accent::before {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  color: #fff;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

header.scrolled {
  height: 70px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 180px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  position: relative;
  padding: 5px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- HERO SECTION --- */
#inicio {
  height: 95vh;
  background: linear-gradient(rgba(4, 25, 30, 0.8), rgba(4, 25, 30, 0.7)),
    url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
  display: flex;
  align-items: center;
}

.hero-content {
  color: #fff;
  max-width: 850px;
  border-left: 4px solid var(--accent-color);
  padding-left: 40px;
}

.hero-subtitle {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 400;
}

/* --- INTRO --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}

.intro-lead {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1.4;
  margin-bottom: 30px;
}

.intro-details p {
  margin-bottom: 20px;
  color: var(--text-muted);
  text-align: justify;
}

/* --- SERVICIOS --- */
#servicios {
  background-color: var(--bg-section);
}

.services-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background-color: #e0e0e0;
  border: 1px solid #e0e0e0;
}

.service-card {
  background-color: #fff;
  padding: 50px 40px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  background-color: var(--primary-color);
}

.card-top {
  margin-bottom: 30px;
}

.service-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: 0.4s;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  transition: 0.4s;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: 0.4s;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
  color: #fff;
}

.arrow-icon {
  align-self: flex-end;
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.4s;
}

.service-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

/* --- ACTUALIDAD --- */
#publicaciones {
  background-color: #fff;
}

.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-item {
  background: #fff;
  border: 1px solid #eee;
  transition: 0.3s;
}

.news-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
}

.news-img {
  height: 200px;
  background-color: #ddd;
  overflow: hidden;
}

.news-img img {
  object-fit: cover;
  height: 100%;
  transition: 0.5s;
}

.news-item:hover .news-img img {
  transform: scale(1.05);
}

.news-content {
  padding: 25px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.subscribe-box {
  background-color: var(--bg-section);
  padding: 40px;
  border: 1px solid #eee;
}

.subscribe-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  background: #fff;
}

.subscribe-form button {
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 15px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.subscribe-form button:hover {
  background-color: var(--accent-color);
}

/* --- TALENTO (NUEVO) --- */
#talento {
  background-color: var(--bg-section);
  border-top: 1px solid #eee;
}

.talent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.talent-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.talent-form-box {
  background: #fff;
  padding: 50px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.talent-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
  background: transparent;
}

.talent-input:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

.file-upload-label {
  display: block;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.file-input-wrapper {
  border: 1px dashed #ccc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.file-input-wrapper:hover {
  border-color: var(--accent-color);
  background: #f9f9f9;
}

/* --- CONTACTO --- */
#contacto {
  background-color: var(--bg-dark);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-row {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.contact-label {
  width: 120px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
}

.contact-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
}

.dark-form .form-group {
  margin-bottom: 25px;
}

.dark-form input,
.dark-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}

.dark-form input:focus,
.dark-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
  background-color: #000;
  color: rgba(255, 255, 255, 0.5);
  padding: 60px 0;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 60px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- RESPONSIVE --- */
@media(max-width: 992px) {

  .intro-grid,
  .news-layout,
  .contact-layout,
  .talent-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content {
    border: none;
    padding-left: 0;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media(max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}