:root {
    --primary-color: #002D62; /* Azul marino oscuro para un look profesional */
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --card-background: #ffffff;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #002D62; /* Fondo del navegador en azul marino oscuro */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff; /* Logo blanco para contraste */
}

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

.nav-links a {
    text-decoration: none;
    color: #fff; /* Enlaces blancos para contraste */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #a9c5df; /* Un azul más claro al pasar el mouse */
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
}

.burger div {
    width: 2rem;
    height: 0.25rem;
    background-color: #fff; /* Líneas del burger blancas para contraste */
    border-radius: 10px;
    transition: all 0.3s linear;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 60px; /* Ajustado en base a la altura del header */
        height: 90vh;
        width: 100%;
        flex-direction: column;
        background-color: #002D62; /* Fondo del menú móvil en azul oscuro */
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: flex;
        z-index: 1001;
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/equipo-ventas.jpg') no-repeat center center/cover;
    color: #fff;
}



.hero_qsomos {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/servicios-sdr.jpg') no-repeat center center/cover;
    color: #fff;
}


/* New: For smaller hero sections like "Quiénes Somos" */
.hero-small {
    min-height: 40vh; /* Reduce la altura para otras páginas  https://unsplash.com/es */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/servicios-sdr.jpg') no-repeat center center/cover;
    background-position: center 30%; /* Ajusta el enfoque de la imagen para que se vea mejor el equipo */
}


.hero-contacto {
    min-height: 40vh; /* Reduce la altura para otras páginas  https://unsplash.com/es */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/contacto.jpg') no-repeat center center/cover;
    background-position: center 30%; /* Ajusta el enfoque de la imagen para que se vea mejor el equipo */
}


.hero-servicio-correo {
    min-height: 40vh; /* Reduce la altura para otras páginas  https://unsplash.com/es */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/correo.jpg') no-repeat center center/cover;
    background-position: center 30%; /* Ajusta el enfoque de la imagen para que se vea mejor el equipo */
}



.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-text {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: left;
}
.content-text p {
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card h3 .material-icons {
    color: var(--primary-color);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features-list li {
   display: flex; /* Habilitamos Flexbox */
   align-items: flex-start; /* Alineamos los items al inicio (arriba) */
   margin-bottom: 0.5rem;
   color: var(--text-color);
   gap: 0.5rem; /* Espacio entre el icono y el texto */
}

.features-list .material-icons {
   color: var(--primary-color);
   font-size: 1.2rem; /* Ajusta el tamaño del icono si es necesario */
   line-height: 1; /* Asegura que la altura de línea del icono no afecte la alineación */
}

.features-list .material-icons {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to the bottom of the card */
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.precio_paq {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #001f43; /* Un tono más oscuro de azul marino */
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.btn-whatsapp img {
    height: 1.5rem;
    width: auto;
}

/* Proyectos Section */
#proyectos .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#proyectos .controls {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.icon-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.swiper {
    width: 100%;
    height: 100%;
}

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

.proj-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.proj-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proj-thumb:hover img {
    transform: scale(1.1);
}

.proj-body {
    padding: 1.5rem;
    text-align: left;
}

.proj-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.proj-desc {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.proj-actions {
    display: flex;
    gap: 0.5rem;
}

.proj-actions button { /* Estilo unificado para ambos botones de proyecto */
    background-color: var(--primary-color); 
    border: 1px solid var(--primary-color);
    color: #fff; 
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proj-actions button:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Contact Section */
#contacto form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.btn.submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet {
    background-color: var(--primary-color);
}

/* Estilo para los modales del carrusel */
.iframe-wrap {
    width: 100%;
    height: 70vh; /* Ocupa el 70% del alto de la ventana */
}

.iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animación de aparición al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}