@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* --- Reset Básico y Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;          /* antes estaba centrado vertical, ahora dejamos que crezca hacia abajo */
    min-height: 100vh;
    padding: 40px 20px;
}
/* --- GALERÍA DE FOTOS --- */
.galeria {
    width: 100%;
    max-width: 1100px;
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.galeria h2 {
    font-size: 2.2em;
    margin-bottom: 12px;
}

.galeria p {
    max-width: 680px;
    margin: 0 auto 30px;
    font-size: 1em;
    color: #e0e0e0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.galeria-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 26px rgba(0,0,0,0.6);
}

@media (max-width: 480px) {
    .galeria-grid img {
        height: 140px;
    }
}


/* --- Contenedor Principal (tarjeta de calculadora) --- */
.container {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 520px;
    text-align: center;
}

header h1 {
    font-size: 2.4em;
    margin-bottom: 10px;
    color: #1a2c4e;
}

header p {
    margin-bottom: 16px;
    color: #666;
    font-size: 0.98em;
    line-height: 1.5;
}

header p strong {
    color: #1a2c4e;
}

/* --- Botones principales en el header --- */
.btn-primaria,
.btn-whatsapp {
    display: inline-block;
    margin: 6px 6px 0;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.btn-primaria {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
}

.btn-primaria:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 190, 93, 0.45);
}

/* --- Formulario --- */
#calculadora {
    margin-top: 20px;
}

#calculadora h2 {
    font-size: 1.6em;
    margin-bottom: 5px;
    color: #1a2c4e;
}

#calculadora p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
}

#calculadora-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.18);
}

/* Botón del formulario (submit) */
button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.1s ease, box-shadow 0.2s ease;
    margin-top: 4px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
}

/* --- Área de Resultados --- */
#resultado {
    margin-top: 24px;
    padding: 18px;
    background-color: #e9f5ff;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    text-align: left;
    font-size: 1.05em;
    line-height: 1.6;
    display: none;
}

#resultado.error {
    background-color: #ffeaea;
    border-left-color: #d93025;
}

/* --- SECCIÓN DE SERVICIOS --- */
#servicios {
    width: 100%;
    max-width: 1100px;
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

#servicios h2 {
    font-size: 2.1em;
    margin-bottom: 12px;
}

#servicios > p {
    max-width: 680px;
    margin: 0 auto 30px;
    font-size: 1em;
    color: #f0f0f0;
}

/* grilla responsive */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.servicio-item {
    background-color: rgba(0, 0, 0, 0.35);
    padding: 26px 22px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.servicio-item:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.55);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.servicio-item svg {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    color: #0095ff;
}

.servicio-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.servicio-item p {
    font-size: 0.98em;
    line-height: 1.6;
    color: #e0e0e0;
}

/* --- Footer con Información de Contacto --- */
footer {
    margin-top: 60px;
    color: #ffffff;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    font-size: 1.05em;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.2s ease, opacity 0.2s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }

    .container {
        padding: 28px 22px;
    }

    header h1 {
        font-size: 2em;
    }

    #servicios {
        margin-top: 40px;
        padding: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .btn-primaria,
    .btn-whatsapp {
        width: 100%;
        text-align: center;
    }
    
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 0.92em;
    }

    .servicio-item {
        text-align: center;
    }

    .servicio-item svg {
        margin-left: auto;
        margin-right: auto;
    }
    
}
