/* ====== ESTILOS GENERALES ====== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #111, #000);
    color: white;
}

/* ====== HEADER & MENÚ ====== */
header {
    background: black;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 22px;
    color: white;
    margin: 0;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: red;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: red;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

/* ====== SECCIÓN INICIO ====== */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero img {
    width: 250px;
    animation: fadeIn 2s ease-in-out;
}

.hero h2 {
    font-size: 32px;
    margin-top: 20px;
    animation: fadeInUp 2s ease-in-out;
}

.hero p {
    font-size: 18px;
    margin: 10px 0 25px;
    animation: fadeInUp 2.5s ease-in-out;
}

.btn-cotizar {
    background: red;
    color: white;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 15px red;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-cotizar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px white;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px red; }
    50% { box-shadow: 0 0 20px white; }
    100% { box-shadow: 0 0 10px red; }
}

/* ====== SERVICIOS & MISIÓN (CUADROS FLOTANTES) ====== */
.section-cuadros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 50px 10%;
    text-align: center;
}

.cuadro {
    background: rgba(20, 20, 20, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cuadro:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

/* ====== FORMULARIO CONTACTO ====== */
form {
    max-width: 600px;
    margin: auto;
    background: rgba(30, 30, 30, 0.9);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: none;
    border-radius: 8px;
    outline: none;
}

form button {
    background: red;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

form button:hover {
    background: white;
    color: black;
}

/* ====== FOOTER ====== */
footer {
    background: black;
    padding: 40px 10%;
    text-align: center;
    margin-top: 50px;
}

footer .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

footer h3 {
    color: red;
    margin-bottom: 10px;
}

footer a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
    display: block;
}

footer a:hover {
    color: red;
}

footer p {
    margin-top: 25px;
    font-size: 14px;
    color: gray;
}

/* ====== BOTÓN WHATSAPP ====== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}
