/* Estilos específicos para la página Nuestros Servicios */

html {
    scroll-behavior: smooth;
}


.ns-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(9, 41, 62, 0.5), rgba(26, 80, 110, 0.65)), 
                url('../imagenes/foto02.png') center/cover no-repeat;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    animation: zoomBackground 10s infinite alternate;
}


.ns-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}


.ns-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 1.5s ease-out;
}

.ns-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-family: 'Arial Black', Gadget, sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: slideInFromBottom 1s ease-out;
}

.ns-hero p {
    font-family: 'Monospace', Gadget, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1.5s ease-out;
}


.scroll-down {
    display: inline-block;
    margin-top: 20px;
    color: #ffd166; /* Color de la flecha */
    font-size: 2.5rem; /* Tamaño de la flecha */
    text-decoration: none;
    animation: bounce 2s infinite; /* Animación de rebote */
    transition: transform 0.3s ease;
}

.scroll-down:hover {
    transform: scale(1.2); /* Efecto de zoom al pasar el mouse */
}

/* Animación de rebote */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}



/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.ns-hero h1 { font-family: 'Arial Black', Gadget, sans-serif;}
.ns-hero p { font-family: 'Monospace', Gadget, sans-serif; }

.ns-services{ padding:60px 18px; background: #fff; color:#102028; }
.ns-services .container{ max-width:1100px; margin:0 auto; }
.ns-services h2{ text-align:center; margin-bottom:40px; font-size:1.9rem; }

/* Estilos para las tarjetas de servicio */
.ns-section {
    margin-bottom: 30px;
}

.service-card {
    display: flex;
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.15);
}

.service-vertical-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    background: linear-gradient(180deg, #19597c, #0d3d52);
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 8px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-family: 'Arial Black', sans-serif;
}

.service-image {
    width: 300px;
    min-width: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.service-list li {
    font-size: 1.5rem;
    font-weight: 700;
    color: #102028;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #e8eef2;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    color: #19597c;
    padding-left: 10px;
    border-bottom-color: #19597c;
}

.ns-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.ns-card{ background:linear-gradient(180deg,#ffffff,#fbfcfd); border-radius:12px; padding:22px; box-shadow:0 8px 24px rgba(16,24,40,0.06); text-align:center; }
.ns-card i{ color:#19597c; margin-bottom:12px; }
.ns-card h3{ margin-bottom:8px; font-size:1.1rem; }
.ns-card p{ 
    color:#4b5b63; 
    font-size:0.98rem; 
    font-family: 'Monospace', Gadget, sans-serif;
}

.ns-footer{ text-align:center; padding:28px 0; }

/* Responsive */
@media (max-width: 900px){ 
    .ns-grid{ grid-template-columns: repeat(2,1fr); } 
    .ns-hero{ padding:60px 0; }
    .service-card {
        flex-direction: column;
        min-height: auto;
    }
    .service-vertical-title {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        padding: 20px;
        min-width: auto;
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    .service-image {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    .service-content {
        padding: 30px;
    }
    .service-list li {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px){ 
    .ns-grid{ grid-template-columns: 1fr; } 
    .ns-hero h1{ font-size:1.8rem;}
    .service-content {
        padding: 20px;
    }
    .service-list li {
        font-size: 1rem;
    }
}

.dark-theme .ns-services{
    background: #1a1a1a;
    
}
.dark-theme .service-content{
    background: rgb(96, 97, 97);
}
.dark-theme .service-content li{
    color: #e6dbdb;
}

.dark-theme .ns-events{
    background: #222121;
}
.dark-theme .ns-events h2{
    color: #dbdbdb ;
}

.dark-theme .ns-events p{
    color: #918c8c ;
}



/* Sección de Eventos y Protocolo */
.ns-events{ background: linear-gradient(180deg, #f8fbfc, #ffffff); padding:48px 18px; color:#072a36; }
.ns-events .container{ max-width:1000px; margin:0 auto; text-align:left; }
.ns-events h2{ font-size:1.8rem; margin-bottom:14px; color:#123d4a; }
.ns-events p{ 
    font-family: 'Monospace', Gadget, sans-serif;
    font-size:1.05rem; 
    line-height:1.65; 
    color:#23424b; 
    margin-bottom:12px; 
}

@media (max-width: 768px){ .ns-events .container{ padding:0 12px; } .ns-events h2{ text-align:center; } .ns-events p{ font-family: 'Monospace', Gadget, sans-serif; text-align:center; } }

/* Botón flotante WhatsApp */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.whatsapp-message {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px #1f77a1;
    max-width: 200px;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

.whatsapp-message p {
    font-family: 'Monospace', Gadget, sans-serif;
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Flecha del cuadro de mensaje */
.whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-floating {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating i {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .whatsapp-floating {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-floating i {
    font-size: 24px;
  }
}
