/* ===== RESET Y VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0b2a4a;      /* Azul profundo (logo) */
  --primary-light: #1e4a7a;
  --secondary: #6c7a89;    /* Gris acero */
  --accent: #f0b71c;       /* Dorado / amarillo para detalles */
  --white: #ffffff;
  --light-gray: #f4f6f9;
  --text-dark: #1e2a36;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 72px; /* espacio para nav fija */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  height: 100px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ===== LOGO CON IMAGEN ===== */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    border: none;
}

.logo a img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo a:hover img {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .logo a img {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .logo a img {
        height: 30px;
    }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-phone {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: none !important;
}

.nav-phone:hover {
  background: var(--primary-light);
  transform: scale(1.02);
  color: var(--white) !important;
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== CONTENIDO PRINCIPAL ===== */
#page-content {
  flex: 1;
}

/* ===== SECCIONES GENERALES ===== */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  word-wrap: break-word;
  max-width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 40px;
  max-width: 650px;
  word-wrap: break-word;
}

.text-center {
  text-align: center;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO (HOME) ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0 70px;
  margin-bottom: 40px;
  border-radius: 0 0 40px 40px;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  word-wrap: break-word;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-stats div {
  text-align: center;
}

.hero-stats .number {
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.hero-stats .label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image i {
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.hero-image i:hover {
  transform: scale(1.05);
  color: rgba(255, 255, 255, 0.2);
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.service-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
  text-align: center;
  word-wrap: break-word;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
  word-wrap: break-word;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--secondary);
  word-wrap: break-word;
}

/* ===== SOBRE NOSOTROS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: #2d3f4f;
}

.about-text ul {
  margin-top: 16px;
}

.about-text ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}

.about-text ul li i {
  color: var(--accent);
  width: 24px;
  text-align: center;
}

.about-image {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-light);
}

.about-image i {
  font-size: 6rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

/* ===== PRODUCTOS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.product-item {
  background: var(--light-gray);
  padding: 28px 16px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid #e9edf2;
  word-wrap: break-word;
  overflow: hidden;
}

.product-item:hover {
  background: var(--white);
  border-color: var(--primary-light);
  transform: scale(1.02);
}

.product-item i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-item h4 {
  font-weight: 600;
  font-size: 1rem;
  word-wrap: break-word;
}

/* ===== CONTACTO ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--light-gray);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-info h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 20px;
  color: #2d3f4f;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1rem;
  word-wrap: break-word;
}

.contact-detail i {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail a {
  font-weight: 500;
  color: var(--primary);
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #dce1e8;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 16px;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 42, 74, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 42, 74, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.footer a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom i {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-image i {
    font-size: 8rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  .navbar {
    height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px 30px;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    align-items: stretch;
    text-align: center;
    border-radius: 0 0 20px 20px;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 1rem;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-phone {
    justify-content: center;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50px;
    
    margin-top: 4px;
  }

  .hero {
    padding: 50px 0 40px;
    border-radius: 0 0 30px 30px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats .number {
    font-size: 1.8rem;
  }

  .hero-image i {
    font-size: 5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .contact-wrapper {
    padding: 20px 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
