/* ==============================
   VARIABLES DE COLOR (respaldo)
   ============================== */
:root {
  --body-bg: #1a1a1a;
  --text-main: #f5f5f5;
  --nav-bg: #111;
  --link-hover: #00bfff;
  --button-bg: #00bfff;
  --button-hover: #009acd;
  --card-bg: #222;
  --gallery-bg: #333;
  --section-bg-1: #1a1a1a; /* negro original */
  --section-bg-2: #222222; /* gris oscuro 1 */
}

/* ==============================
   RESET BÁSICO
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-main);
  background-color: var(--body-bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font-family: 'Roboto', sans-serif;
}


/* ==============================
   BACKGROUNDS DE SECCIONES
   ============================== */
#home { background-color: var(--section-bg-1); }
#services { background-color: var(--section-bg-2); }
#gallery { background-color: var(--section-bg-1); }
#contact { background-color: var(--section-bg-2); }

/* ==============================
   NAVEGACIÓN
   ============================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--nav-bg);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

nav .nav-logo {
  font-weight: bold;
  font-size: 1.2rem;
}

nav ul.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul.nav-links li a {
  font-weight: bold;
  transition: color 0.3s;
}

nav ul.nav-links li a:hover {
  color: var(--link-hover);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==============================
   SECCIONES GENERALES
   ============================== */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem 2rem 1rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- HERO / HOME --- */
.hero-logo img {
  width: 500px;
  height: auto;
}

#home { justify-content: center; }

/* --- TITULOS Y TEXTOS --- */
section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
}

/* --- BOTONES GENERALES --- */
button {
  padding: 0.8rem 1.5rem;
  background-color: var(--button-bg);
  color: #111;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background-color: var(--button-hover);
}

/* ==============================
   GALERÍA
   ============================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 2rem;
  width: 100%;
  padding: 0 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4/3;
  background-color: var(--gallery-bg);
}

/* ==============================
   FORMULARIO DE CONTACTO
   ============================== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
}

input, textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
}

textarea { resize: vertical; min-height: 120px; }

/* ==============================
   IMAGE COMPARISON SLIDER
   ============================== */
.comparison-slider {
  position: relative;
  width: 50%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 0 auto;
}

.comparison-slider img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  object-fit: cover;
}

.comparison-slider .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

.comparison-slider .slider {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 26px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  cursor: ew-resize;
}

.comparison-slider .slider::-webkit-slider-thumb,
.comparison-slider .slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
}

/* ==============================
   SERVICE CARDS
   ============================== */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 95%;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px hsla(0,0%,0%,0.33);
  transition: transform 0.3s, box-shadow 0.3s;
  width: calc(50% - 15px);
  height: auto;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.service-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 20px;
  height: 100%;
}

.service-btn {
  align-self: flex-end;
  padding: 0.8rem 1.5rem;
  background-color: var(--button-bg);
  color: #111;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.service-btn:hover { background-color: var(--button-hover); }

.service-text h2,
.service-text p {
  text-align: left;
  margin: 0;
}

/* ==============================
   SWIPER SLIDER
   ============================== */
.swiper {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================
   CONTACT INFO
   ============================== */
.contact-info {
  display: flex;
  align-items: center;     /* centra verticalmente todo */
  justify-content: center; /* centra horizontalmente */
  gap: 20px;               /* espacio entre columnas */
}

.contact-left h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 6px 0;
}

.contact-left img {
  width: 32px;
  height: 32px;
}

/* Separador vertical */
.divider {
  width: 1px;
  background-color: #ccc;
  height: 60px; /* ajusta según lo alto de tu bloque */
}

/* Columna derecha */

.contact-right {
  display: flex;
  align-items: center; /* centra verticalmente texto e iconos */
  flex-direction: row; /* cambia columna a fila */
  align-items: center;
  gap: 10px;
}

.contact-right p {
  margin: 0;
  font-weight: bold;
}

.contact-right .social-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
}





/* ==============================
   FOOTER
   ============================== */
.footer-dm0407 {
  border-top: 1px solid var(--button-bg);
  width: 100%;
  margin-top: 50px;
  text-align: center;
  padding: 5px 0;
}

.footer-dm0407 p {
  font-size: 10px;
  color: var(--text-main);
}

/* ==============================
   MEDIA QUERIES
   ============================== */


@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery img { border-radius: 8px; }

  div.swiper.mySwiper { display: none; }
}
