/* servicios.css */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

.navbar-section {
    background: linear-gradient(135deg, #000000 0%, #0f2066 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #0dd30e;
}

.list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    margin: 0 15px;
}

.nav-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link a:hover {
    background-color: rgba(13, 211, 14, 0.1);
    color: #0dd30e;
    transform: translateY(-2px);
}

.Tittle {
    margin-bottom: 1rem;
    text-align: center;
    color: #0f2066;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
}

.main-section {
    background-image: url(img/Diseño.jpeg);
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #0f2066;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.main-section::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-section .Tittle {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: clamp(2rem, 6vw, 3.2rem);
    position: relative;
    z-index: 2;
}

.main-section p {
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 700px;
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.submain-section {
    background-color: #0f2066;
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    overflow: hidden;
}

.videoServicios {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: -1;
    margin: 0;
}

.submain-section .Subtitle {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.submain-section .content {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.submain-section .content .Text {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.3rem);
    text-align: center;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.submain-section .image-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

/* Grid de servicios: 3 columnas fijas en desktop, controlado por media queries
   (antes iba fijo en un style inline en el HTML y por eso no respondía) */
.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(15, 32, 102, 0.4);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.service-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    text-align: center;
}

.service-card h3 {
    color: #0f2066;
    margin-bottom: 10px;
}

.service-card .card-content p {
    flex: 1;
}

.service-card .btn-service {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0dd30e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    align-self: center;
    margin-top: auto;
}

.service-card .btn-service:hover {
    background-color: #0baf0c;
}

.benefits-section {
    padding: 60px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #0dd30e;
}

.benefit-item h3 {
    color: #0f2066;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #555;
    line-height: 1.6;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 211, 14, 0.95);
    color: #ffffff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    font-size: 16px;
}

.overlay-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.overlay-text p {
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.overlay-text a {
    color: #0f2066;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.overlay-text a:hover {
    color: #ffffff;
}

.image-item:hover .overlay-text {
    opacity: 1;
}

.info-section[style*="background-color: #ffffff"] {
    background-color: #ffffff !important;
    padding: 60px 20px;
    border-bottom: 5px solid #0f2066;
}

.info-section h2 {
    color: #0f2066;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.info-section ul {
    list-style: none;
    padding: 0;
    color: #000000;
    max-width: 800px;
    margin: 0 auto;
}

.info-section li {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f4f4f4;
    border-radius: 10px;
    border-left: 5px solid #0dd30e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-section li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-section strong {
    color: #0f2066;
    font-size: 1.1rem;
}

.footer-section {
    background: linear-gradient(135deg, #000000 0%, #0f2066 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-info, .footer-social, .footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-info h3, .footer-social h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #0dd30e;
}

.footer-info p, .footer-social a, .footer-legal p, .footer-legal a {
    margin: 5px 0;
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
}

.footer-social a:hover {
    color: #0dd30e;
}

.footer-legal a {
    color: #cccccc;
}

.footer-legal a:hover {
    color: #0dd30e;
}

/* ===== RESPONSIVE ===== */

/* Tablets grandes / laptops chicas */
@media (max-width: 1024px) {
    .main-section {
        height: 80vh;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .info-section ul {
        max-width: 90%;
    }
}

/* Tablets / móviles horizontales */
@media (max-width: 768px) {

    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .nav-link {
        margin: 0 8px;
    }

    .main-section {
        height: 55vh;
        padding: 20px;
        background-attachment: scroll; /* fixed rompe en móviles/iOS */
        background-image: url(img/Diseño_mobile.png);
        background-position: center;
    }

    .videoServicios {
        height: 50vh;
    }

    .submain-section {
        padding: 40px 15px;
    }

    .image-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .image-item img {
        height: 180px;
    }

    .service-card img {
        height: 170px;
    }

    .benefits-section {
        padding: 40px 15px;
    }

    .benefit-item {
        padding: 20px;
    }

    .info-section {
        padding: 40px 15px;
    }

    .info-section h2 {
        font-size: 2rem;
    }

    .info-section li {
        margin-bottom: 20px;
        padding: 10px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-info, .footer-social, .footer-legal {
        text-align: center;
        width: 100%;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {

    .logo a {
        font-size: 20px;
    }

    .nav-link a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .main-section {
        height: 45vh;
        padding: 15px;
    }

    .videoServicios {
        height: 40vh;
    }

    .image-item img {
        height: 160px;
    }

    .service-card img {
        height: 150px;
    }

    .service-card .card-content {
        padding: 15px;
    }

    .benefit-item {
        padding: 15px;
    }

    .info-section h2 {
        font-size: 1.6rem;
    }

    .info-section li {
        padding: 8px;
    }

    .info-section strong {
        font-size: 1rem;
    }

    .footer-section {
        padding: 25px 15px;
    }

    .footer-info p, .footer-social a, .footer-legal p, .footer-legal a {
        font-size: 13px;
    }
}