:root {
    --bg-color: #1a1a1a;
    --text-color: #f5f5f5;
    --text-color-sec: #1a1a1a;
    --main-color: #4a90e2;
    --accent-color: beige;
    --card-bg: #2c2c2c;
    --big-font: clamp(2.5rem, 5vw, 6rem);
    --p-font: clamp(1rem, 2vw, 1.1rem);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
    list-style: none;
    text-decoration: none;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    transition: all 0.3s ease;
}

.header:hover {
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 26, 0.8);
}

.navbar ul {
    display: flex;
    gap: 2rem;
}

.navbar ul {
    flex-direction: row; /* Asegúrate de que los elementos estén en fila */
}

.navbar a {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: var(--main-color);
}

.logo {
    color: var(--main-color);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
}

.menu-icon {
    display: none; /* Ocultar el ícono del menú en pantallas grandes */
    cursor: pointer;
    font-size: 1.5rem;
}

.home {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 5% 2rem;
    text-align: center;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.main-title {
    position: relative;
    font-size: var(--big-font);
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 800px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 1;
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-size: var(--p-font);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.descripcion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    background: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.contenido {
    max-width: 600px;
    animation: fadeIn 1s ease-in-out;
}

.descripcion-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
    animation: slideIn 0.5s ease-in-out;
    color: var(--main-color);
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-cta {
    padding: 0.75rem 1.5rem;
    background: var(--main-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    color: var(--text-color-sec);
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.imagen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 1s ease-in-out;
}

.imagen img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.imagen img:hover {
    transform: scale(1.05);
}

.servicios {
    padding: 4rem 5%;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicios-dscrp {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.sv-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.servicios-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 2rem;
}
.card {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card p {
    color: #e0e0e0;
}

.ver-mas-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ver-mas {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--main-color);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.ver-mas:hover {
    background-color: var(--accent-color);
    color: var(--text-color-sec);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .servicios {
        padding: 3rem 3%;
    }
    
    .ver-mas-container {
        margin-top: 1.5rem;
    }
}
.contacto {
    padding: 4rem 5%;
    background: var(--bg-color);
}

.contacto h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--main-color);
}

.contacto-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid var(--main-color);
    background: var(--card-bg);
    color: var(--text-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.contacto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #25D366;
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none; /* Ocultar por defecto */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.scrollToTop:hover {
    background-color: #333; /* Cambiar el color al pasar el mouse */
}

footer {
    background: var(--card-bg);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .map-container iframe {
        width: 100%;
        height: 300px; /* Ajusta la altura según sea necesario */
        border: 0;
    }
    .contacto-container {
        flex-direction: column; /* Cambiar a columna en móviles */
        align-items: center; /* Centrar el contenido */
    }

    .contacto h2 {
        margin-bottom: 1rem; /* Reduce el margen en dispositivos móviles */
    }
    
    form {
        width: 100%; /* Asegúrate de que el formulario ocupe el 100% del ancho */
    }
    
    input, textarea {
        width: 100%; /* Asegúrate de que los campos de entrada ocupen el 100% del ancho */
    }

    .contacto-container {
        flex-direction: column; /* Mantener el contenido en columna */
        gap: 1rem; /* Añadir espacio entre los elementos */
    }

    .map-container {
        margin-bottom: 1rem; /* Añadir margen en la parte inferior del mapa */
    }
}

@media (max-width: 768px) {
    .navbar ul {
        display: none; /* Ocultar el menú por defecto en dispositivos móviles */
        flex-direction: column; /* Cambiar a columna en móviles */
        position: absolute; /* Posicionar el menú de forma absoluta */
        top: 60px; /* Asegúrate de que esté debajo del encabezado */
        left: 0;
        background-color: var(--bg-color); /* Color de fondo del menú */
        width: 100%; /* Ancho completo */
        padding: 1rem 0; /* Espaciado interno */
        z-index: 999; /* Asegúrate de que esté por encima de otros elementos */
    }

    .navbar ul.show {
        display: flex; /* Mostrar el menú cuando se activa */
    }

    .menu-icon {
        display: block; /* Mostrar el ícono del menú en móviles */
    }
    
    .header {
        padding: 1rem 3%;
    }

    .descripcion {
        flex-direction: column;
    }

    .imagen {
        margin-top: 2rem;
    }

    .contacto-container {
        flex-direction: column;
    }
}

/*Servicios*/
.svtitle {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.servicios-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
  }
  
  .cards {
    background: var(--text-color-sec);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .cards:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  
  .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .cards i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin: 1rem 0;
  }
  
  .cards h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .cards p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
  }
  
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
  }
  
  .precio {
    font-weight: bold;
    color: var(--main-color);
  }
  
  .btn-cta {
    padding: 0.5rem 1rem;
    background: var(--main-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btn-cta:hover {
    background: var(--accent-color);
  }

  .cart-btn {
    background-color: var(--main-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-btn:hover {
    background-color: var(--accent-color);
  }

  .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
  }

  .cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--main-color);
    border-radius: 5px;
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
  }

  .cart-items {
    max-height: 200px;
    overflow-y: auto;
  }

  .cart-total {
    margin-top: 10px;
    font-weight: bold;
  }

  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--main-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
  }

  #checkoutBtn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
  }
  
  @media (max-width: 768px) {
    .servicios-cards {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
  } 