/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.1;
}

/* //?Color del Encabezado */
header {
    background: #F8F9FA  ;
    /* //?Color de la letra */
    color: #464a4a;
    padding: 24px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 12px;
}

/* //?Color de las letras para navegar en la pagina */
.navigation a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 0.2s;
}

.navigation a:hover {
    background: #B0B0B0;
}

/* //?Imagen */
.hero {
    background: url('../img/limpieza 2.jpg') no-repeat center center/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    position: relative;
}

/* //?Redondeado de las orillas de la imagen */
.hero {
    border-bottom-left-radius: 80px 40px;
    border-bottom-right-radius: 80px 40px;
    overflow: hidden;
}
/* //?Color de fondo de la imagen */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(253, 253, 253, 0.059);
    z-index: 1;
}

/* //?Contenedor del Eslogan */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* //?Texto del eslogan */
.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: #3f3e3e;
    background: #f8f9fac7  ;
    border-radius: 12px;
    padding: 12px 0;
}

/* //?Separacion de Botones */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* //?Color de los botnes del eslogan */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    background: #B0B0B0;
    color: #F8F9FA ;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(167,217,245,0.12);
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}
/* //?Color de los botnes del eslogan */
.btn-residential:hover {
    background: #ffffff;
    color: #333333;
}

.btn-commercial:hover {
    background: #F4F4F4;
    color: #333333;
}

/* //?Sección de Servicios */
.services {
    padding: 48px 30px;
    text-align: center;
    background: #FFFFFF;
}

/* //?Color del titulo de la tarjeta de servicio */
.services h2 {
    color: #464a4a;
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 700;
}

/* //?Tamaño de las tarjetas de serivicios */
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* //?Fondo de las tarjetas de serivios */
.service-card {
    background: #ada398
;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(16, 17, 18, 0.717);
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(49, 50, 51, 0.991);
}

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgb(0, 0, 0);
    border: 3px solid #b4b8bd;
}

/* //?Color del titulo de las tarjetas de servicios */
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

/* //?Color del texto de las tarjetas de servicios */
.service-card p {
    font-size: 1rem;
    color: #000000;
}

/* Fondo del Formulario de contacto */
.contact-form {
    background: url('../img/imagen 2.jpg') no-repeat center center/cover;
    padding: 48px 20px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
}

.contact-form > * {
    position: relative;
    z-index: 1;
}

.contact-form h2 {
    color: #333333;
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 700;
    word-wrap: break-word;
}

/* Color del formulario */
.contact-form form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: #fefdfd;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
}

/* Color de texto del formulario */
.contact-form label {
    color: #000000;
    font-weight: 500;
    margin-bottom: 6px;
    text-align: left;
    display: block;
}

/* Contorno de los input del formulario */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #000000;
    border-radius: 8px;
    font-size: 1rem;
    background: #F4F4F4;
    color: #000000;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 120px;
}

/* Color del Btn enviar formulario */
.contact-form button {
    background: #3e3f3f;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

/* Transicion de color del btn enviar */
.contact-form button:hover {
    background: #767574e8;
}

/* MEDIA QUERIES PARA RESPONSIVIDAD */

/* Tablets medianos (768px y abajo) */
@media (max-width: 768px) {
    .contact-form {
        padding: 32px 16px;
    }
    
    .contact-form h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .contact-form form {
        padding: 28px 20px;
        gap: 16px;
    }
}

/* Móviles grandes (480px y abajo) */
@media (max-width: 480px) {
    .contact-form {
        padding: 24px 12px;
        min-height: auto;
    }
    
    .contact-form h2 {
        font-size: 1.6rem;
        margin-bottom: 18px;
        line-height: 1.2;
    }
    
    .contact-form form {
        padding: 24px 16px;
        gap: 14px;
        border-radius: 12px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .contact-form button {
        padding: 12px 0;
        font-size: 0.95rem;
    }
}

/* iPhone específico y móviles muy pequeños (375px y abajo) */
@media (max-width: 375px) {
    .contact-form {
        padding: 20px 8px;
    }
    
    .contact-form h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    .contact-form form {
        padding: 20px 12px;
        gap: 12px;
        border-radius: 10px;
        max-width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
    
    .contact-form button {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}

/* Para pantallas muy pequeñas o con orientación horizontal */
@media (max-width: 320px) {
    .contact-form {
        padding: 16px 4px;
    }
    
    .contact-form form {
        padding: 16px 8px;
        margin: 0 4px;
    }
    
    .contact-form h2 {
        font-size: 1.2rem;
    }
}

/* //?Color del footer */
.footer {
    background: #828386;
    color: #f1f1f1;
    text-align: center;
    padding: 24px 0 12px 0;
    font-size: 1rem;
    box-shadow: 0 -2px 8px rgba(167,217,245,0.10);
}

.footer-info p {
    margin-bottom: 6px;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.footer-social {
    margin: 14px 0 10px 0;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.footer-social a img {
    width: 28px;
    height: 28px;
    filter: grayscale(1) brightness(0.7);
    transition: filter 0.2s;
}

.footer-social a:hover img {
    filter: none;
}

.footer-copy {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #ffffff;
    opacity: 0.7;
}

/* //!Estilo de los Modal */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-content button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.modal-content button:hover {
    background: #0056b3;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #007bff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

