html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    position: relative;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    
}
header {
    background: linear-gradient(135deg, #ffc4c4 0%, #e92a2a 100%);
    padding: 15px;
    flex-wrap: wrap;
    display: flex;  
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Efecto de bolitas */
.dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(192, 26, 26, 0.192);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% { transform: translateY(120px) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20px) translateX(50px); opacity: 0; }
}

/* bolitas del footer */
#dotsFooter {
    height: 100vh;
    top: auto;
    bottom: 0;
}

#dotsFooter .dot {
    bottom: 0;
    top: auto;
    transform: translateY(0);
    animation: floatUp 15s linear infinite;
    opacity: 0.1;
}

@keyframes floatUp {
    0% { 
        transform: translateY(0) translateX(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.3; 
    }
    90% { 
        opacity: 0.3; 
    }
    100% { 
        transform: translateY(-100vh) translateX(50px); 
        opacity: 0; 
    }
}

header img {
    height: 60px;
    padding-left: 70px;
    position: relative;
    z-index: 2;
}

header li{
    padding-right: 70px;
}
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width .4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-section {
    position: relative;
    height: 90vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(0.9rem, 2vw, 1.2rem); 
    max-width: 800px;
    margin: 0 auto;
}

/* Estilo para el botón de formulario */
.btn-form-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-form {
    text-decoration: none;
    padding: 12px 28px;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(45deg, #e92a2a, #ff6b6b);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 42, 42, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: inline-block;
    min-width: 200px;
}

.btn-form:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #e92a2a);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 42, 42, 0.4);
}

.btn-form:hover:after {
    opacity: 1;
}

/* Carrusel de img */
.carousel-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.6s ease-in-out;
    transform: translateY(20px);
    opacity: 0;
    bottom: 20px;
    left: 10%;
    right: 10%;
    width: 80%;
}

/* Centra lo que hay en el carrucel */
.carousel-caption ul.list-unstyled li {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.carousel-caption ul.list-unstyled li i {
    flex-shrink: 0;
    margin-top: 3px;
}

.carousel-inner {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carousel:hover .carousel-item img {
    transform: scale(1.02);
}

.carousel-item.active img {
    transform: scale(1.01);
}

/* Estilos para las listas del carrusel */
.carousel-caption ul {
    text-align: left;
    padding-left: 15px;
}

.carousel-caption li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.carousel-caption .fa {
    min-width: 20px;
    text-align: center;
}

/* Imagen de separacion */
.full-image-section {
    padding: 0;
    margin: 0;
}

.full-image {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
}

.content-section, .vision-section {
    padding: 50px 0;
    position: relative;
    background-color: white;
}

.section-content {
    padding: 0 15px;
}


/* FOOTER CON CONTRASTE */
.footer {
    color: rgb(0, 0, 0);
    padding: 50px 0 20px;
    background: linear-gradient(135deg, #e92a2a 0%, #ffc4c4 100%);
    position: relative;
    overflow: hidden;
    border-top: 3px solid rgba(233, 42, 42, 0.2);
    
}


.footer a:hover {
    color: #dd1919;
    text-decoration: underline;
}

/* Contenido del footer */

/* Estilos para el logo en el footer */
.footer-logo {
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-logo {
    position: relative;
    z-index: 3;
}


.footer .container, .footer .row, .footer p {
    position: relative;
    z-index: 2;
}

.phone-numbers {
    margin-bottom: 30px;
}

.phone-item {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.phone-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ESTILO PARA SECCIÓN DE CONTACTO */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.75s, box-shadow 0.4s !important;
    text-align: center;
    border: none;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #dd1919;
}

.contact-card h3 {
    color: #dd1919;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card p, .contact-card a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #dd1919;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* ICONOS ROJOS EN CONTACTOS */
.contact-card .social-links a {
    color: #dd1919 !important; 
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card .social-links a:hover {
    transform: scale(1.2);
    color: #ff0000 !important; 
}


/* Efecto de onda al hacer clic en el teléfono/email */
@keyframes wave {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wave-effect {
    position: relative;
    display: inline-block;
}

.wave-effect:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #3498db;
    border-radius: 50%;
    animation: wave 0.6s linear;
}

.section-title {
    color: #000000;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: clamp(1.2rem, 3vw, 1.5rem); 
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #dd1919;
}

.vision-section .section-title:after {
    left: auto;
    right: 0;
}

/* ESTILOS PARA MISIÓN Y VISIÓN  */
.mission-vision-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    font-weight: 700;
    margin-bottom: 25px !important;
}

.mission-vision-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
    line-height: 1.6;
}

/* Media Queries para hacer responsiva la pagina */
@media (max-width: 1200px) {
    .hero-section {
        height: 85vh;
        min-height: 450px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 80vh;
        min-height: 400px;
    }
    
    .carousel-item img {
        height: 350px;
    }
    
    .full-image {
        height: 45vh;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }
    
    header img {
        padding-left: 0;
        margin-bottom: 10px;
        height: 45px;
    }
    
    .navbar-nav {
        justify-content: center;
        width: 100%;
    }
    
    .nav-item {
        padding: 5px 8px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 5px 8px !important;
    }
    
    .hero-section {
        height: 70vh;
        min-height: 350px;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
        width: 90%;
        padding: 10px;
        bottom: 15px;
    }
    
    .full-image {
        height: 35vh;
    }
    
    .section-content {
        margin-bottom: 20px;
    }
    
    .content-section, .vision-section {
        padding: 40px 0;
    }
    
    .content-section .col-lg-6, 
    .vision-section .col-lg-6 {
        order: initial !important;
        text-align: left !important;
    }
    
    .vision-section .section-title:after {
        left: 0;
        right: auto;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .phone-item {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
        min-height: 300px;
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 5px;
        display: block;
    }

    .carousel-caption ul {
        padding-left: 5px;
    }

    .carousel-caption li {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .full-image {
        height: 30vh;
        min-height: 200px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .phone-numbers .d-flex {
        flex-direction: column;
    }
    
    .separator {
        display: none !important;
    }

    .btn-form {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

@media (max-width: 400px) {
    .nav-link {
        font-size: 0.8rem;
        padding: 5px 6px !important;
    }
    
    .hero-section {
        height: 55vh;
        min-height: 250px;
    }
    
    .carousel-item img {
        height: 200px;
    }
    
    .carousel-caption {
        bottom: 10px;
    }
    
    .carousel-caption h5 {
        font-size: 0.9rem;
    }
    
    .carousel-caption p {
        font-size: 0.75rem;
    }

    .carousel-caption li {
        font-size: 0.7rem;
    }
    
    .full-image {
        height: 25vh;
    }

    .btn-form {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 160px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}