/* ===== FUENTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* ===== GENERAL ===== */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #cccccc;
    --light-bg: #1a1a1a;
    --dark-bg: #0a0a0a;
    --card-bg: #161616;
    --text-light: #f0f0f0;
    --text-muted: #b0b0b0;
    --shadow: 0 8px 30px rgba(0,0,0,0.7);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted) !important;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}

/* ===== HEADER ===== */
.navbar {
    background: rgba(0, 0, 0, 0.96) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    color: #fff !important;
}
.navbar-brand img {
    max-height: 45px;
    margin-right: 12px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.95rem;
}
.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    transform: translateY(-2px);
}
.nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 0%, transparent 40%);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.hero h1 span {
    color: #ffffff;
    opacity: 0.95;
}
.hero .lead {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 20px 0 30px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero .btn {
    padding: 16px 44px;
    border-radius: 60px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(255,255,255,0.08);
}
.hero .btn-primary {
    background: #ffffff;
    border: none;
    color: #000000;
}
.hero .btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255,255,255,0.15);
}
.hero .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
}
.hero .btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    transform: translateY(-4px);
}
.hero small {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
}

/* ===== TARJETAS DE SERVICIOS ===== */
.card-servicio {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 30px 20px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.card-servicio:hover {
    transform: translateY(-14px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.2);
}
.card-servicio .icon {
    font-size: 3.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 22px;
    border-radius: 50%;
    transition: var(--transition);
}
.card-servicio:hover .icon {
    background: rgba(255,255,255,0.12);
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 0 30px rgba(255,255,255,0.08);
}
.card-servicio h5 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 5px;
    color: #ffffff;
}
.card-servicio p {
    color: var(--text-muted);
    font-size: 1rem;
}
.card-servicio ul {
    text-align: left;
    padding-left: 0;
    margin-top: 15px;
}
.card-servicio ul li {
    color: #c0c0c0;
    font-size: 0.9rem;
    padding: 4px 0;
}
.card-servicio ul li i {
    color: #ffffff;
    margin-right: 8px;
}

/* ===== BLOG ===== */
.card-blog {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.card-blog:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.12);
}
.card-blog img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.card-blog .card-body {
    padding: 24px;
}
.card-blog .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
}
.card-blog .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.card-blog .btn {
    border-radius: 50px;
    padding: 8px 28px;
    font-weight: 600;
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
    transition: var(--transition);
}
.card-blog .btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: #ffffff;
    color: #ffffff;
}
.card-blog .fecha {
    font-size: 0.85rem;
    color: #777;
    margin-top: 12px;
}

/* ===== CONTACTO ===== */
.contacto-info {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}
.contacto-info i {
    color: #ffffff;
    width: 30px;
}
.form-control {
    border-radius: 12px;
    padding: 14px 18px;
    border: 2px solid #2a2a2a;
    background: #0a0a0a;
    color: #ffffff;
    transition: var(--transition);
    font-size: 1rem;
}
.form-control:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
    background: #0a0a0a;
    color: #ffffff;
}
.form-control::placeholder {
    color: #666;
}
.btn-enviar {
    background: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 700;
    color: #000000;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.btn-enviar:hover {
    background: #cccccc;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.15);
    color: #000;
}

/* ===== FOOTER ===== */
footer {
    background: #000000;
    color: #a0a0a0;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}
footer a {
    color: #888;
    transition: var(--transition);
}
footer a:hover {
    color: #ffffff;
    padding-left: 8px;
}
footer .redes i {
    font-size: 1.5rem;
    margin-right: 18px;
    color: #888;
    transition: var(--transition);
}
footer .redes i:hover {
    color: #ffffff;
    transform: scale(1.2);
}
footer .copy {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 30px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #555;
}

/* ===== ADMIN ===== */
.admin-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.admin-card:hover {
    transform: translateY(-5px);
}
.admin-card .numero {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
}
.admin-table {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.admin-table th {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
}
.admin-table td {
    color: #d0d0d0;
}
.admin-table .btn-outline-warning,
.admin-table .btn-outline-danger {
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}
.admin-table .btn-outline-warning:hover,
.admin-table .btn-outline-danger:hover {
    background: rgba(255,255,255,0.08);
}

/* ===== CONTADORES ===== */
.counter {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255,255,255,0.05);
}

/* ===== BOTÓN WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    background: #1da851;
    color: #fff;
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
}
.animate-slide-left {
    opacity: 0;
    animation: slideInLeft 0.9s ease forwards;
}
.animate-slide-right {
    opacity: 0;
    animation: slideInRight 0.9s ease forwards;
}
.animate-zoom {
    opacity: 0;
    animation: zoomIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .hero .lead { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.6rem; }
    .hero { min-height: 70vh; text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .navbar-brand { font-size: 1.2rem; }
    .navbar-brand img { max-height: 32px; }
    h2 { font-size: 2rem; }
    .counter { font-size: 2.8rem; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 1.8rem; bottom: 20px; right: 20px; }
}

/* ===== REFUERZO DE LEGIBILIDAD ===== */
.card-servicio p,
.card-servicio ul li,
.card-blog .card-text,
.text-muted,
.contacto-info p,
footer p {
    color: #d0d0d0 !important; /* más claro que antes */
}

.card-servicio h5,
.card-blog .card-title,
footer h5 {
    color: #ffffff !important;
}

.hero .lead {
    color: #f0f0f0 !important;
}

/* ===== EFECTOS ADICIONALES ===== */
.card-servicio {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.card-servicio:hover {
    transform: translateY(-16px) scale(1.02);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}
.card-servicio .icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-servicio:hover .icon {
    transform: scale(1.15) rotate(-8deg);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 40px rgba(255,255,255,0.1);
}

/* ===== BOTÓN SECUNDARIO ===== */
.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: #ffffff;
    border-radius: 60px;
    padding: 12px 36px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: #ffffff;
    color: #fff;
    transform: translateY(-3px);
}