/* Reseteo básico y Scroll suave para que los botones se deslicen elegantemente */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Encabezado */
.cabecera {
    background-image: url('imagenes/imagen-7.jpg');
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.logo-principal {
    max-width: 250px; 
    height: auto;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 15px;
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.capa-oscura {
    background-color: rgba(26, 26, 26, 0.6); 
    padding: 80px 20px;
    border-bottom: 5px solid #FFCC00;
}

.cabecera h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #FFCC00;
}

.cabecera h2 {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 400;
}

.eslogan {
    font-size: 1.2em;
    font-style: italic;
    color: #CC0000;
    margin-bottom: 40px;
}

/* Botón flotante superior */
.boton {
    background-color: #CC0000; 
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: 2px solid #CC0000;
}

.boton:hover {
    background-color: #FFCC00;
    color: #1a1a1a;
    border: 2px solid #FFCC00;
    transform: scale(1.05);
}

/* Quiénes Somos */
.quienes-somos {
    background-color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.quienes-somos h2 {
    color: #CC0000;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.quienes-somos p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Ventajas (Por qué elegirnos) */
.ventajas {
    background-color: #f1f1f1;
    padding: 60px 20px;
    text-align: center;
}

.ventajas h2 {
    color: #1a1a1a;
    margin-bottom: 40px;
    font-size: 2.2em;
}

.contenedor-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.card-sencilla {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 220px;
    border-left: 4px solid #FFCC00;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card-sencilla h3 {
    color: #CC0000;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.card-sencilla p {
    font-size: 0.9em;
    color: #555;
}

/* Servicios Completos con Imágenes */
.servicios {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.servicios h2 {
    color: #CC0000;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.contenedor-servicios {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background-color: #1a1a1a;
    color: white;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-bottom: 5px solid #CC0000;
    transition: transform 0.3s ease, border-bottom-color 0.3s ease;
    text-align: left;
    overflow: hidden; 
}

.servicio-card:hover {
    transform: translateY(-8px);
    border-bottom-color: #FFCC00;
}

.img-servicio {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    border-bottom: 3px solid #FFCC00;
}

.contenido-card {
    padding: 25px;
}

.contenido-card h3 {
    color: #FFCC00;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.contenido-card p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Llamado a la Acción (CTA) */
.cta-cotizacion {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.cta-cotizacion h2 {
    color: #1a1a1a;
    font-size: 2em;
    margin-bottom: 15px;
}

.cta-cotizacion p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.botones-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.boton-principal {
    background-color: #CC0000;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #CC0000;
    transition: 0.3s;
}

.boton-principal:hover {
    background-color: #a00000;
    border-color: #a00000;
}

.boton-secundario {
    background-color: #f1f1f1;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #ddd;
    transition: 0.3s;
}

.boton-secundario:hover {
    background-color: #e2e2e2;
}

/* Sección Contacto Dividida */
.seccion-contacto {
    padding: 80px 20px;
    background-color: #ffffff;
}

.contenedor-contacto {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.info-contacto {
    flex: 1;
    min-width: 250px;
}

.info-contacto h3 {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.item-contacto {
    margin-bottom: 25px;
}

.item-contacto a {
    color: #CC0000;
    text-decoration: none;
    font-weight: bold;
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.item-contacto a:hover {
    text-decoration: underline;
}

.item-contacto p {
    color: #555;
}

.formulario-contacto {
    flex: 2;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.formulario-contacto h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.formulario-contacto > p {
    color: #555;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.campo-completo, .mitad {
    margin-bottom: 20px;
}

.fila-campos {
    display: flex;
    gap: 20px;
}

.fila-campos .mitad {
    flex: 1;
}

.formulario-contacto label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 0.9em;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #CC0000;
}

.campo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.campo-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.85em;
    color: #555;
    cursor: pointer;
}

.boton-enviar {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.boton-enviar:hover {
    background-color: #CC0000;
}

/* Responsivo para celulares del formulario */
@media (max-width: 600px) {
    .fila-campos {
        flex-direction: column;
        gap: 0;
    }
}

/* Pie de página limpio */
.pie-pagina {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid #CC0000;
}

.pie-pagina h3 {
    margin-bottom: 10px;
    color: #FFCC00;
}

.pie-pagina p {
    color: #888;
    font-size: 0.9em;
}