/* Ajustes generales de la página */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f9;
}

/* Estilo para negritas */
.negrita {
    font-weight: bold;
    color: #FFF; 
}

.link-logo{text-decoration: none;}

.about_usnegrita{font-weight: bold;
color: #000;}

.footer-number{text-decoration: none
    color#fff;}
/* Encabezado */

.logo-title{display: flex;
justify-content: start;
align-items: center;
}



header  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #e4f7fe;
    box-shadow: 0px 0px 50px #fffa;
    color: #0096ed;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 10px;
    text-align: center; 
    flex-wrap: wrap; 
}

header .logo {
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-shadow: 0px 0px 2px #0009;
}

.logo_imagen {
    width: 150px;
    filter: drop-shadow(0px 0px 8px #0009);
}


/* Menú de navegación */
header nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    display: block;
    font-size: 1.5em;
    cursor: pointer;
    list-style: none;
}

header nav ul.menu {
    display: none; 
}



#menu-toggle {
    display: none;
    
}

#menu-toggle:checked + label + ul {
    display: flex;
    flex-direction: row;
    gap: 0;
    position: absolute;
    top: 140px;
    background-color: #e4f7fe;
    border-radius: 10px;
    padding: 10px;
    list-style: none;
}


header nav ul li a {
    color: #0096ED;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px;
    border-radius: 20px;
    transition: background-color 0.3s;
    list-style: none;
    padding: 8px;
}

header nav ul li a:hover {
    background-color: #0096ed;
    color: #eee;
}

/* Media Queries */
@media (min-width: 768px) {
    header nav ul.menu {
        display: flex; 
        flex-direction: row;
        gap: 20px;
        position: static;
        background-color: transparent;
        list-style: none;
    }

    .menu-icon {
        display: none; 
    }
}

@media (max-width: 767px) {
    header {
        flex-direction: column; 
        text-align: center; 
    }

    header nav ul.menu {
        text-align: center; 
    }
}

/* Sección Principal (Hero) */
.hero {
    background-image: url('Imagenes-ambulancias/ambulancia3.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    box-shadow: 0px 0px 30px #000f;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.4em;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f53737;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #ff0000;
    transform: scale(1.05);
}

/* Sección de Servicios */
.services {
    padding: 60px 20px;
    background-color: #7acaf1;
    text-align: center;
    ;
}


.services h2 {
    font-size: 2.5em;
    color: #eee;
    text-shadow: 0px 0px 12px #0009;
    margin-bottom: 30px;
    background-color: #7ac6f1;
    border-radius: 25px;
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}


.service-item {
    background-size: cover;
    background-position: center;
    color: #eee;
    padding: 60px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.4); 
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-item:hover::before {
    opacity: 0.5;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1em;
}

/* Sección Sobre Nosotros */
.about-us {
    padding: 60px 20px;
    background-color: #e9f8ff;
    text-align: center;
    box-shadow: 0px 0px 20px #0009;
}

.about-us h2 {
    font-size: 2.5em;
    color: #0096ED;
    margin-bottom: 30px;
}

.about-us p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Estilos de Contacto */
.contact {
    padding: 60px 20px;
    background-color: #d1eefc;
    text-align: center;
    box-shadow: 0px 0px 20px #0009;
}

.contact h2 {
    font-size: 2.5em;
    color: #0096ED;
    margin-bottom: 30px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    max-width: 100%; 
    padding: 0 16px; 
}

.contact input,
.contact textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: calc(100% - 32px); 
    max-width: 100%; 
    box-sizing: border-box;
}

textarea{font-family: inherit;}
.contact button {
    padding: 15px;
    background-color: #0096ED;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact button:hover {
    background-color: #5CB8E7;
}

/* Pie de Página */
footer {
    padding: 20px;
    background-color: #061d50;
    color: white;
    text-align: center;
    box-shadow: 0px 0px 18px #0009;
}

footer .social-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #5CB8E7;
}


/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 40px;
    right: 40px;
    background-color: #0096ED;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    margin-bottom: 10px;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
