/* =========================
   BASE / RESET / VARIABLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #e73131;
  --secondary-color: #555;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #fff;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Extras (usados por Quienes, pero no dañan en las otras) */
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 15px 50px rgba(0, 0, 0, 0.1);
  --radius-lg: 20px;
  --radius-md: 15px;
}

::selection {
  background: var(--primary-color);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--white);
}

/* =========================
   NAV (COMÚN)
========================= */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  text-decoration: none; /* sirve si es <a> */
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu .btn-nav {
  background: var(--primary-color);
  color: var(--white);
  border-radius: 25px;
  font-size: 0.85rem;
}

.nav-menu .btn-nav::after {
  display: none;
}

.nav-menu .btn-nav:hover {
  background: #c92a2a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 49, 49, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* =========================
   CONTAINER / SECTION HEADER (COMÚN)
========================= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
}

.section-tag {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.section-title span {
  color: var(--primary-color);
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =========================
   HERO (BASE COMÚN)
========================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Overlay base para héroes con pseudo-elemento */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(231, 49, 49, 0.85) 0%,
    rgba(85, 85, 85, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
  color: var(--white);
}

/* =========================
   ABOUT (COMÚN)
========================= */
.about-content {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}
.about-text h3 span {
  color: var(--primary-color);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  background: #eee;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* =========================
   HIGHLIGHT (COMÚN)
========================= */
.highlight-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c92a2a 100%);
  color: var(--white);
}

.highlight-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.highlight-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.highlight-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* =========================
   CONTACT (COMÚN)
========================= */
.contact-content {
  display: grid;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-info,
.contact-form {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 20px;
}

.contact-info h4 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.contact-info h4 span {
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--white);
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(231, 49, 49, 0.3);
}

.contact-item:hover .contact-icon {
  transform: rotate(5deg) scale(1.1);
}

.contact-details strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.contact-details a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: #c92a2a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(231, 49, 49, 0.3);
}

/* =========================
   FOOTER (COMÚN)
========================= */
.footer-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c92a2a 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}

.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.footer {
  background: #2c3e50;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}

.footer h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-link {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  transform: scale(0);
  transition: var(--transition);
  border-radius: 50%;
}

.social-link svg,
.social-link i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(231, 49, 49, 0.4);
  border-color: var(--primary-color);
}

.social-link.facebook:hover::before {
  background: #1877f2;
}
.social-link.facebook:hover {
  border-color: #1877f2;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.social-link.linkedin:hover::before {
  background: #0a66c2;
}
.social-link.linkedin:hover {
  border-color: #0a66c2;
  box-shadow: 0 10px 30px rgba(10, 102, 194, 0.4);
}

.social-link.youtube:hover::before {
  background: #ff0000;
}
.social-link.youtube:hover {
  border-color: #ff0000;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* =========================
   REVEAL (COMÚN)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}
.reveal.in,
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE (COMÚN)
========================= */
@media (max-width: 980px) {
    .highlight-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .btn-secondary {
        display: flex !important;
        align-items: center;
    }
    
  .container {
    padding: 0 0rem;
  }
  
  .contact-info, .contact-form {
    padding: 2rem;
  }
  
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }


}
