/* view/index.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --navbar-height: 76px;
    --scroll-padding: 2px; /* Aumentado para mejor espaciado */
    --scroll-offset: calc(var(--navbar-height) + var(--scroll-padding));
    --section-padding: 5rem;
}
/* Enhanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1) translateZ(0); }
    50% { transform: scale(1.05) translateZ(20px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Modern Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}


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

html {
    scroll-padding-top: var(--scroll-offset);
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f4f6f7;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(44, 62, 80, 0.95));
    padding: 1rem 0;
    transition: all 0.4s ease;
}


.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-color) !important;
    transition: transform var(--transition-speed);
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 0;
}
.navbar-brand:hover {
    transform: translateZ(20px) scale(1.05);
}
.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Secciones */
section {
    position: relative;
    padding: var(--section-padding) 0;
    margin-top: var(--navbar-height);
    background: var(--light-color);
    overflow: hidden;
    z-index: 1;
} 
/* Mejorar el efecto de profundidad */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.2)
    );
    pointer-events: none;
}
/* Contenido principal */
/* estilos de las tarjetas*/
.about-content,
.service-card,
.vision-card,
.mission-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

/* Welcome section mejorado */
.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    /* Asegura que el texto interno esté centrado */
}
.welcome-content {
    width: 100%;
    max-width: 800px;/* Limita el ancho máximo para mejor legibilidad */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(250, 250, 250, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;/* Centra los elementos internos horizontalmente */
    justify-content: center;/* Centra los elementos internos verticalmente */
}
.welcome-content h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    text-align: center;
    /* Asegura que el texto del título esté centrado */
    width: 100%;
    /* Ocupa todo el ancho disponible */
}
.welcome-content p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

/* Style for the button to ensure good contrast */
.welcome-content .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-shadow: none;
    transition: all 0.3s ease;
}
/* carrusel */
#inicio .carousel-item {
    position: relative;
    height: 100vh;
}

#inicio .carousel-item img {
    object-fit: cover;
    height: 100vh;
    width: 100%; /*   filter: brightness(0.9); */
}

/* efectos letras  */
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes staggeredFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-content h1 {
    animation: staggeredFadeIn 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.welcome-content p {
    animation: staggeredFadeIn 1s ease-out forwards;
    opacity: 0;
    animation-delay: 1s;
}

.welcome-content .btn-primary {
    animation: fadeInSlideUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 1.5s;
}

/* Ensure sequential appearance */
.welcome-content h1,
.welcome-content p,
.welcome-content .btn-primary {
    animation-fill-mode: forwards;
}
/* Tarjetas de servicios */
.service-card {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.service-card .content {
    transform-style: preserve-3d;
}
.service-image-container img {
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.1);
}
.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-badge i {
    font-size: 1.5rem;
}
.service-card .service-content ul li {
    margin-bottom: 0.5rem;
}

.service-card .service-content ul li i {
    margin-right: 10px;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}
/* Estilos para imágenes */
.about-image-container,
.service-card img {
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition-speed);
}
.about-image-container:hover .about-image,
.service-card:hover img {
    transform: scale(1.05);
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}


/* Sección Noticias */
#noticias {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}
#noticias::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}
/* Estilos generales de tarjetas */
.news-card,
.service-card,
.vision-card,
.mission-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.1);
}
.news-card:hover,
.service-card:hover,
.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 15px 12px rgba(0, 0, 0, 0.15);
}
.news-card img,
.service-card img {
    transition: transform 0.5s ease;
}

.news-card:hover img,
.service-card:hover img {
    transform: scale(1.1) translateZ(30px);
}
/* Contenedor de Noticias */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}
/* Contenido de Noticias */
.news-card .card-body {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}
.news-card .card-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
/* Animación en cascada */
.news-card:nth-child(2) {
    animation-delay: 0.2s;
}
.news-card:nth-child(3) {
    animation-delay: 0.4s;
}
/* Imágenes en noticias */
.news-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
/* Botón de PDF */
.pdf-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
/* Sección Contacto */
/* Container principal ajustado */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.contact-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(44, 62, 80, 0.95)) !important;
    position: relative;
    padding: 6rem 0; /* Aumentado el padding vertical */
    min-height: calc(100vh - var(--navbar-height)); /* Asegura que la sección ocupe al menos toda la altura visible */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Estilo para el scroll */
.contact-info-card::-webkit-scrollbar {
    width: 6px;
}

.contact-info-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.contact-info-card::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.contact-info-card::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(44, 62, 80, 0.95));
    z-index: 0;
}

.contact-section > * {
    position: relative;
    z-index: 1;
}
/* Main title styling */
.contact-section .section-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
}
.contact-section .section-description {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 4rem;
    opacity: 0.9;
}
.map-card {
    height: 450px; /* Altura fija para mejor encuadre */
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container {
    height: 100%;
    min-height: 450px;
}

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

/* Contact info card improvements */
.contact-info-card {
    height: 450px;
    background: #ffffff;
    border-radius: 15px;
    overflow-y: auto; /* Permite scroll si el contenido es muy largo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.contact-info-header {
    background: linear-gradient(135deg, #2c3e50 0%, #2c3e50 100%);
    padding: 1.5rem;
    color: #ffffff;
}

.contact-info-body {
    flex-grow: 1;
    padding: 2rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(44, 62, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text {
    flex-grow: 1;
}

.contact-text h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.emergency-text {
    color: #dc3545;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Para el título principal "Ubicación y Contacto" */
.contact-section h2,
.contact-section .h2 {
    color: #ffffff !important;
}
/* Para el título de la card de información */
.contact-section .contact-info-card h3 {
    color: #ffffff !important;
}

/* Para los títulos de los detalles de contacto */
#desc {
    color: #ffffff !important;
}
/* Para el título "Información de Contacto" */
.contact-section .contact-info-header h3 {
    color: #ffffff !important;
}

.emergency-text {
    color: #dc3545 !important;
    font-weight: 500;
    margin-top: 0.25rem !important;
}
.copyright-text {
    color: #ffffff;
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}
.social-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
/* Responsive Adjustments */
@media (max-width: 991px) {
    .map-container {
        height: 350px;
    }
    
    .contact-info-card {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 300px;
    }
    
    .contact-info-header {
        padding: 1rem;
    }
    
    .contact-info-body {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        width: 90%;
        padding: 1.5rem;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .services-grid,
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-card .card-title {
        font-size: 1.1rem;
    }

    .news-image {
        height: 180px;
    }

    :root {
        --navbar-height: 64px;
    }
}
@media (max-width: 768px) {
    .welcome-content {
        padding: 1rem;
    }

    .welcome-content h1 {
        font-size: 2rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }
}

/* Mejoras para la sección de Contacto en móviles */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-section .section-title {
        margin-bottom: 2rem;
        font-size: 1.75rem;
    }
    
    .contact-section .section-description {
        margin-bottom: 2.5rem;
        font-size: 0.95rem;
    }
    
    .map-card, .contact-info-card {
        height: auto;
        min-height: 350px;
    }
    
    .map-container {
        min-height: 300px;
    }
    
    .contact-detail {
        margin-bottom: 1rem;
    }
    
    .contact-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .contact-text h4 {
        font-size: 1rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-container {
        padding: 0.5rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .map-card, .contact-info-card {
        min-height: 300px;
        border-radius: 10px;
    }
    
    .map-container {
        min-height: 250px;
    }
    
    .contact-info-header {
        padding: 0.75rem;
    }
    
    .contact-info-body {
        padding: 1rem;
    }

    .contact-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .contact-text h4 {
        margin-bottom: 0.25rem;
    }
    
    .emergency-text {
        font-size: 0.85rem;
    }
}

/* Ajustes para scroll-padding en móviles */
@media (max-width: 768px) {
    :root {
        --scroll-padding: 15px;
    }
    
    html {
        scroll-padding-top: calc(var(--navbar-height) + var(--scroll-padding));
    }
}   