/* 1. VARIABLES & RESET */
:root {
  /* 1. VARIABLES & RESET */
  --primario: #ffffff;           /* Texto principal (blanco) */
  --acento: #000000;             /* Naranja energético - para botones, hover, títulos, enlaces */
  --fondo: #0a1828;              /* Fondo principal oscuro (elegante y fácil a la vista) */
  --fondo-secundario: #3f5482;   /* Para tarjetas y secciones (un poco más claro) */
  --texto-suave: #ffffff;        /* Texto secundario / gris azulado suave */
  --blanco: #228188;             /* Para elementos que necesitan blanco puro (ej. nombre) */
  --borde: #e1e1e1;              /* Bordes sutiles */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--fondo);
    color: var(--primario);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* 2. LAYOUTS (Flex & Grid) */
.navbar, .flex-sobre-mi, .campo, .formulario, .whatsapp-float {
    display: flex;
}

.navbar {
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    background: var(--blanco);
    border-bottom: 7px solid var(--borde);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 29px;
    margin-top: 20px;
}

/* 3. ELEMENTOS DE NAVEGACIÓN */
.logo { font-size: 1.8rem; font-weight: 800; color: #000; letter-spacing: -1px; }

.nav-links a {
    text-decoration: none;
    color: var(--texto-suave);
    font-weight: 600;
    padding: 2px 17px;
    border: 4px solid var(--primario);
    border-radius: 100px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--acento);
    background: var(--primario);
}

/* 4. CONTENIDO & TARJETAS */
.container { max-width: 1000px; margin: 50px auto; padding: 0 20px; }

.hero h1 { font-size: 3.5rem; line-height: 1.1; letter-spacing: -2px; margin-bottom: 1rem; }
.hero p { font-size: 1.45rem; color: var(--texto-suave); }

.tarjeta-elegante {
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px solid #fff;
    transition: 0.3s;
    margin-bottom: 26px;
}

.tarjeta-elegante:hover { transform: translateY(-8px); }

.flex-sobre-mi { justify-content: space-between; align-items: center; gap: 12rem; }
.logo-tarjeta { font-size:2rem; opacity: 0.2; flex-shrink: 0; }

/* 5. SECCIÓN MASCOTAS */
.tarjeta-elegante.mascota { padding: 0; overflow: hidden; }
.tarjeta-elegante.mascota img { width: 100%; height: 230px; object-fit: cover; transition: 0.5s; }
.tarjeta-elegante.mascota:hover img { transform: scale(1.05); }
.info-mascota { padding: 1.2rem; }

/* 6. FORMULARIO & BOTONES */
.formulario, .campo { flex-direction: column; gap: 20px; }
.campo { gap: 8px; }

input, textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--borde);
    background: #f4f6fb;
}

.boton-enviar {
    background: var(--primario);
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.boton-enviar:hover { background: #000000; color: #ffffff; }

/* 7. WIDGETS & FOOTER */
.whatsapp-float {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 60px; height: 60px;
    background: #48ff00b9;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

footer { text-align: center; padding: 4rem 0; opacity: 0.8; }

/* 8. RESPONSIVO */
@media (max-width: 768px) {
    .navbar, .flex-sobre-mi { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
    .grid-proyectos { grid-template-columns: 1fr; }
}
