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

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #2d3436; 
    color: #dfe6e9;
    line-height: 1.6;
}

/* Navbar sofisticada */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e272e;
    padding: 15px 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: #55efc4;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #dfe6e9;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #55efc4;
}

/* Header con filtro metalizado */
header {
    background: linear-gradient(rgba(45, 52, 54, 0.85), rgba(45, 52, 54, 0.85)), 
                url('https://images.unsplash.com/photo-1581578731548-c64695ce6958?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 160px 20px 100px 20px;
    text-align: center;
}

header h1 {
    font-size: 4rem;
    color: #55efc4;
    margin: 0;
}

/* Botón Cotizar */
.btn-cotizar {
    display: inline-block;
    margin-top: 30px;
    background-color: #55efc4;
    color: #2d3436;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-cotizar:hover {
    background-color: #00b894;
    transform: scale(1.05);
}

/* Tarjetas de Servicio */
.service-card {
    background: #353b48;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
    border: 1px solid #485460;
}

.service-card:hover {
    border-color: #55efc4;
    transform: translateY(-10px);
}

.service-card h3 {
    color: #55efc4;
}

.service-card p {
    color: #ced6e0;
}

/* Sección Nosotros */
#nosotros {
    padding: 100px 20px;
    background-color: #2f3542;
}

/* Ajuste de anclas */
h2[id], section[id] {
    scroll-margin-top: 100px;
}

/* Animación de Pulso */
@keyframes pulso-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(85, 239, 196, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(85, 239, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(85, 239, 196, 0); }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    background-color: #55efc4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: bold;
    z-index: 99999;
    transition: all 0.3s ease;
    animation: pulso-whatsapp 2s infinite;
}

.whatsapp-float span {
    color: #2d3436 !important;
    font-size: 16px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #00b894;
    animation: none;
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        padding: 12px;
    }
}
/* Nuevo pulido para fotos en tarjetas */
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Evita que la foto se estire feo */
    border-radius: 15px 15px 0 0; /* Redondea solo arriba */
}

.service-card {
    padding: 0 !important; /* Quita el espacio para que la foto toque los bordes */
    overflow: hidden; /* Corta la foto para que respete el redondeado de la tarjeta */
}

.service-content {
    padding: 25px; /* Le da aire al texto debajo de la foto */
    text-align: left; /* El texto alineado a la izquierda se ve más serio con fotos */
}
