/* Estilos Base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #121212; color: white; scroll-behavior: smooth; }

/* Navegación y Logo Diferenciado */
nav { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; padding: 15px 5%; background: rgba(0,0,0,0.95); z-index: 1000; align-items: center; border-bottom: 1px solid #333; }
.logo { color: #fdfdfd; font-weight: 300; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.cam-text { font-family: 'Orbitron', sans-serif; color: #ff6600; font-size: 1.6rem; margin-right: 5px; font-weight: 700; }

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: bold; transition: 0.3s; font-size: 0.9rem; }
.nav-links a:hover { color: #ff6600; }


/* Hero con Brillo Vibrante */
.hero { 
    height: 85vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    
    /* CAPA OSCURA + TU IMAGEN LOCAL */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), 
                url('fondo.tejado.jpg'); 
    
    background-size: cover;       /* Cubre toda la pantalla */
    background-position: center;   /* Centra a los trabajadores */
    background-attachment: fixed;  /* Efecto elegante al hacer scroll */
    position: relative;
}


.titulo-naranja { 
    color: #ff6600; 
    font-size: 3.5rem; 
    font-weight: 900;
    text-transform: uppercase;
    /* BRILLO VIBRANTE */
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.9), 0 0 30px rgba(255, 102, 0, 0.4); 
    margin-bottom: 20px;
    z-index: 2;
}

.titulo-naranja { 
    color: #ff6600; 
    font-size: 3rem; 
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.7), 0 0 30px rgba(255, 102, 0, 0.4); /* EFECTO BRILLO VIBRANTE */
    margin-bottom: 15px;
}

.hero-btn-container { margin-top: 25px; }
.btn-main { background: #ff6600; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: 0.3s; box-shadow: 0 4px 15px rgba(255,102,0,0.3); }
.btn-main:hover { background: #ff8533; transform: translateY(-3px); }

/* Servicios */
.services-section { padding: 60px 5%; text-align: center; }
.section-title { color: #ff6600; margin-bottom: 40px; font-size: 2.2rem; }
.services-grid { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }

/* Tarjetas */
.flip-card { width: 300px; height: 380px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 12px; overflow: hidden; }
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.overlay-title { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.8); padding: 12px; color: #ff6600; font-weight: bold; }
.flip-card-back { background: #1a1a1a; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 2px solid #ff6600; }

/* Presupuesto Centrado */
.contact-section { padding: 80px 5%; background: #000; display: flex; justify-content: center; }
.form-container { width: 100%; max-width: 500px; background: #1a1a1a; padding: 35px; border-radius: 15px; text-align: center; border: 1px solid #333; }
.form-container h2 { color: #ff6600; margin-bottom: 25px; }
.form-container input, .form-container textarea { width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 5px; border: none; background: #2a2a2a; color: white; }
.btn-submit { width: 100%; background: #ff6600; color: white; padding: 14px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* BOTÓN WHATSAPP Y ANIMACIÓN */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: 0.3s;
    animation: pulse-wa 2s infinite;
}

.whatsapp-btn img { width: 35px; }

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* Estilo base del botón */
.btn-main {
    display: inline-block;
    padding: 15px 35px;
    background-color: #ff6600; /* Naranja corporativo */
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px; /* Bordes redondeados */
    transition: all 0.3s ease; /* Transición suave */
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    text-transform: uppercase;
    border: 2px solid transparent;
}

/* Efecto al pasar el ratón (Hover) */
.btn-main:hover {
    background-color: transparent;
    color: #ff6600;
    border-color: #ff6600;
    transform: translateY(-3px); /* El botón sube un poquito */
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
}.servicios-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 20px;
    gap: 20px;
}

.servicio-card {
    background: #222; /* Fondo oscuro elegante */
    border-bottom: 4px solid #ff6600; /* Línea naranja abajo */
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.servicio-card:hover {
    transform: translateY(-10px); /* Se eleva al pasar el ratón */
}

.servicio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Para que la foto no se deforme */
}

.servicio-card h3 {
    color: #ff6600;
    margin: 15px 0;
    font-size: 1.4rem;
}

.servicio-card p {
    color: #ccc;
    padding: 0 15px;
    font-size: 0.9rem;
}.contacto-section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Un gris casi negro muy elegante */
    color: white;
}

.contacto-section h2 {
    text-align: center;
    color: #ff6600;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.contacto-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.contacto-info h3 {
    color: #ff6600;
    margin-top: 20px;
    font-size: 1.2rem;
}

.contacto-info p {
    color: #ccc;
    margin-bottom: 5px;
}

.contacto-cta {
    background: #222;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: center;
}

.site-footer {
    text-align: center;
    padding: 20px;
    background: #000;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-card {
    animation: fadeInUp 0.8s ease-out forwards;
}
.footer-legal ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Para que en el móvil se vean uno debajo de otro */
}

.footer-legal a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ff6600; /* Brilla en naranja al pasar el ratón */
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.footer-bottom p {
    color: #555;
    font-size: 0.75rem;
}