/* ==========================
   RESET BÁSICO
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #575757, #747474, #464646);
  color: #f4f4f4;
  transition: background 1s ease-out;
}

/* ==========================
   TOP INFO
========================== */
.top-info {
  width: 100%;
  background: linear-gradient(135deg, #575757, #747474, #464646);
  text-align: center;
  padding: 5px 0;
  border-bottom: 1px solid #9b9b9b;
  position: fixed;
  top: 0;
  z-index: 9999;
  animation: fadeInTopInfo 1.5s ease-out;
}

@keyframes fadeInTopInfo {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.contact-top span {
  margin: 0 15px;
  font-weight: bold;
  color: #f4f4f4;
}

.contact-top i {
  margin-right: 5px;
  color: #25d366;
}

.fa-envelope {
  color: #fff;
  margin-right: 10px;
  font-size: 20px;
}

/* ==========================
   NAV
========================== */
nav {
  width: 100%;
  background: linear-gradient(135deg, #575757, #747474, #464646);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  position: fixed;
  top: 30px;
  z-index: 999;
  border-bottom: 1px solid #9b9b9b;
  transition: transform 0.3s ease-out;
}

nav:hover {
  transform: translateY(-5px);
}

.logo-box {
  display: flex;
  align-items: center;
}

.logo-box img {
  height: 120px;
  width: auto;
  transition: transform 0.3s ease-out;
}

.logo-box img:hover {
  transform: scale(1.1);
}

.logo-text {
  font-size: 28px;
  margin-left: 10px;
  color: #f1eaea;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  position: relative;
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #f4f4f4;
  font-weight: bold;
  padding: 6px 5px;
  font-size: 20px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #eaeef3;
}

/* ==========================
   DROPDOWN SERVICIOS
========================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #575757, #747474, #464646);
  min-width: 160px;
  max-width: 200px;
  padding: 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid #9b9b9b;
  display: none;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  animation: dropdownFadeIn 0.3s ease-out forwards;
}

@keyframes dropdownFadeIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu li a {
  padding: 10px 15px;
  display: block;
  font-weight: 600;
  color: #fcfcfc;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #9b9b9b;
  color: #e8ecf0;
}

/* ==========================
   HERO
========================== */
.hero {
  width: 100%;
  height: 80vh;
  background: url('https://vidriosnotaf.com/img/Fondo.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 0 50px;
  margin-top: 80px;
  animation: fadeInHero 1s ease-out;
}




@keyframes fadeInHero {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-content h1 {
  font-size: 50px;
  color: #ffffff;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 20px;
  color: #ffffff;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
  margin-top: 10px;
}

/* ==========================
   SERVICIOS
========================== */
.servicios {
  padding: 100px 50px;
  text-align: center;
  background: linear-gradient(135deg, #575757, #747474, #464646);
  animation: fadeInServicios 1s ease-out;
}

@keyframes fadeInServicios {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.servicios h2 {
  margin-bottom: 50px;
  color: #fff;
}

.servicio {
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.servicio .slider {
  flex: 1 1 45%;
  max-width: 45%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 40px;
}

.servicio .slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 5px;
  transition: opacity 0.3s ease-out;
}

.servicio .slider img.active {
  display: block;
  opacity: 1;
}

.servicio-texto {
  flex: 1 1 45%;
  max-width: 45%;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
  animation: slideInText 1s ease-out;
}

@keyframes slideInText {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.servicio-texto h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #f1f1f1;
}

.servicio-texto p {
  font-size: 16px;
  line-height: 1.4;
  color: #ddd;
}

/* ==========================
   BOTONES FLOTANTES
========================== */
.whatsapp-container {
  position: fixed;
  top: 40%;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.whatsapp-text {
  position: relative;
  background-color: #25d366;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
}

.whatsapp {
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* ==========================
   REDES SOCIALES
========================== */
.social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding: 0 1cm;
}

.social a {
  font-size: 28px;
  padding: 6px;
}

.social .ig { color: #E1306C; }
.social .fb { color: #1877F2; }
.social .wa { color: #25D366; }

/* ==========================
   CONTACTO
========================== */
#contacto {
  padding: 10px 1cm;
}

.contacto-box {
  margin: 0 auto;
}

/* ==========================
   CORREO
========================== */
.correo {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 12px;
  display: inline-block;
  margin: 0 12px;
}

.correo:hover {
  text-decoration: underline;
}

/* ==========================
   MEDIA QUERIES
========================== */

/* CELULARES GRANDES (OPPO, Samsung A, Xiaomi) */
@media screen and (max-width: 900px) and (orientation: portrait) {
  nav { padding: 10px 20px; }
  .logo-box img { height: 60px; }
  .hero { height: 60vh; padding: 0 20px; text-align: center; margin-top: 120px; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 15px; }
  .servicio { flex-direction: column; }
  .servicio .slider, .servicio-texto { max-width: 100%; flex: 1 1 100%; }
  .servicio .slider { order: 1; margin: 0 auto 10px; height: auto; aspect-ratio: auto; }
  .servicio-texto { order: 2; text-align: center; padding: 5px 0; }
}

/* CELULARES (Móviles pequeños) */
@media screen and (max-width: 500px) {
  nav { padding: 15px 20px; justify-content: space-between; }
  .logo-box img { height: 70px; margin-top: 5px; }
  .logo-text { font-size: 14px; margin-left: 5px; }
  nav ul li a { font-size: 12px; padding: 5px 3px; }
  nav ul li { margin-left: 10px; }
}

/* CELULARES MUY PEQUEÑOS (320px - 360px) */
@media screen and (max-width: 360px) {
  nav { padding: 8px 10px; }
  .logo-box img { height: 55px; }
  .logo-text { font-size: 12px; margin-left: 4px; }
  nav ul li a { font-size: 11px; padding: 4px 2px; }
  .hero { height: 55vh; margin-top: 130px; padding: 0 10px; }
  .hero-content h1 { font-size: 22px; }
  .hero-content p { font-size: 13px; }
  .servicio-texto h3 { font-size: 20px; }
  .servicio-texto p { font-size: 13px; }
  .whatsapp { width: 36px; height: 36px; font-size: 20px; }
  .whatsapp-text { font-size: 13px; padding: 6px 12px; }
  .correo { font-size: 13px; padding: 4px 8px; }
  .social a { font-size: 22px; }
}

/* TABLETS HORIZONTAL (iPad / Samsung Tab) */
@media screen and (min-width: 700px) and (max-width: 1024px) and (orientation: landscape) {
  nav { padding: 10px 40px; }
  .logo-box img { height: 90px; }
  nav ul li a { font-size: 18px; }
  .hero { height: 75vh; padding: 0 50px; }
  .hero-content h1 { font-size: 42px; }
  .hero-content p { font-size: 18px; }
  .servicio { flex-direction: row; }
  .servicio .slider, .servicio-texto { max-width: 48%; }
  .servicio-texto { text-align: left; }
}

#ventanas, #puertas, #banos, #pasamanos, #cortavientos, #fachadas, #vitrinas, #espejos, #marqueteria, #domos {
  padding-top: 80px;  /* Agrega padding-top también si quieres más espacio entre la imagen y el título */
}

