/* ==========================================================================
   Reset y Estilos Base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #F8FAFC; /* Blanco para texto en modo oscuro */
    background: transparent; /* Transparent to allow .area background */
    transition: color 0.3s ease;
    overflow-x: hidden !important;
}

body.light-mode {
    color: #1F2937; /* Dark gray para texto en modo claro */
}

body.light-mode .bg-neutral-dark {
    background-color: rgba(243, 244, 246, 0.9); /* Soft off-white con transparencia en modo claro */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Sombra sutil para profundidad */
}

body.light-mode .border-neutral-mid {
    border-color: #D1D5DB; /* Gris claro para bordes en modo claro */
}

.container {
    max-width: 1280px; /* Aumentado para un diseño más espacioso */
    margin: 0 auto;
    padding: 24px; /* Más padding para minimalismo */
}

/* Contenedor General para las Secciones */
main {
    position: relative;
    background: transparent; /* Fondo transparente para permitir que el fondo de .area sea visible */
}

/* ==========================================================================
   Animated Background
   ========================================================================== */

.background-container {
    position: relative;
    min-height: 100vh;
}

.area {
    background: #0F0824; /* Fondo base oscuro para modo oscuro */
    background: linear-gradient(to left, #2D1B4E, #0F0824); /* Deep purple to near-black */
    width: 100%;
    height: 100%;
    position: fixed; /* Fixed to stay in place while scrolling */
    top: 0;
    left: 0;
    z-index: 0;
}

body.light-mode .area {
    background: #E5E7EB; /* Fondo gris claro para modo claro */
    background: linear-gradient(to left, #3c3c3a, #E5E7EB); /* Light gold to light gray */
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15); /* Slightly darker circles for dark mode */
    animation: animate-circles 25s linear infinite;
    bottom: -150px;
}

body.light-mode .circles li {
    background: rgba(255, 255, 255, 0.3); /* Más visibles en modo claro */
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate-circles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    position: relative;
    z-index: 10; /* Ensure footer is above background */
    display: block; /* Ensure footer is visible */
    min-height: 200px; /* Ensure footer has enough height */
    background: transparent; /* Transparent to show .area background */
}

.bg-neutral-dark {
    background-color: rgba(10, 12, 36, 0.9); /* Darker navy translúcido en modo oscuro */
}

body.light-mode .bg-neutral-dark {
    background-color: rgba(243, 244, 246, 0.9); /* Soft off-white en modo claro */
    backdrop-filter: blur(8px); /* Blur para efecto vidrio esmerilado */
}

.border-neutral-mid {
    border-color: #4B5563; /* Gris medio en modo oscuro */
}

body.light-mode .border-neutral-mid {
    border-color: #D1D5DB; /* Gris claro para bordes en modo claro */
}

footer a {
    transition: color 0.3s ease;
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */

.whatsapp-btn {
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.15); /* Aumentado para más dinamismo */
}

/* ==========================================================================
   Home Section
   ========================================================================== */

/* Hero Section */
#home {
    position: relative;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, #A67C00, #0D1B47); /* Darker gold to navy en modo oscuro */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .gradient-text {
    background: linear-gradient(90deg, #FBBF24, #2563EB); /* Bright gold to vibrant blue en modo claro */
}

/* Why Choose Us and Services */
.trust-block-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center cards horizontally, including last row */
    gap: 2rem; /* Consistent spacing between cards */
    padding: 1rem 0; /* Vertical padding for container */
}

.service-block-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center cards horizontally, including last row */
    gap: 2rem; /* Consistent spacing between cards */
    padding: 1rem 0; /* Vertical padding for container */
}

.trust-block {
    position: relative;
    flex: 1 1 320px; /* Minimum width 320px, grow to fill space */
    max-width: 360px; /* Prevent cards from becoming too wide */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.3s ease;
    opacity: 0;
}

.service-block {
    position: relative;
    flex: 0 0 calc(25% - 1.5rem); /* 25% width minus gap for 4 cards per row */
    min-width: 280px; /* Minimum width for smaller screens */
    max-width: 320px; /* Cap width for consistency */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.3s ease;
    opacity: 0;
}

.trust-block.visible, .service-block.visible {
    opacity: 1;
}

.trust-block::before, .service-block::before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.trust-block::after, .service-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
    filter: blur(30px);
}

.trust-block:hover::before, .service-block:hover::before,
.trust-block:hover::after, .service-block:hover::after {
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 90px);
}

/* Gradients for trust-block (Dark Mode) */
.trust-block:nth-child(1)::before, .trust-block:nth-child(1)::after {
    background: linear-gradient(315deg, #3B2A6D, #B8004C); /* Deep purple to dark pink */
}

.trust-block:nth-child(2)::before, .trust-block:nth-child(2)::after {
    background: linear-gradient(315deg, #1F1447, #B8004C); /* Darker navy to dark pink */
}

.trust-block:nth-child(3)::before, .trust-block:nth-child(3)::after {
    background: linear-gradient(315deg, #2A2E3B, #00A3CC); /* Dark gray to dark cyan */
}

.trust-block:nth-child(4)::before, .trust-block:nth-child(4)::after {
    background: linear-gradient(315deg, #0D1B47, #00A3CC); /* Dark navy to dark cyan */
}

/* Gradients for service-block (Dark Mode) */
.service-block:nth-child(1)::before, .service-block:nth-child(1)::after {
    background: linear-gradient(315deg, #3B2A6D, #B8004C); /* Deep purple to dark pink */
}

.service-block:nth-child(2)::before, .service-block:nth-child(2)::after {
    background: linear-gradient(315deg, #1F1447, #B8004C); /* Darker navy to dark pink */
}

.service-block:nth-child(3)::before, .service-block:nth-child(3)::after {
    background: linear-gradient(315deg, #2A2E3B, #00A3CC); /* Dark gray to dark cyan */
}

.service-block:nth-child(4)::before, .service-block:nth-child(4)::after {
    background: linear-gradient(315deg, #0D1B47, #00A3CC); /* Dark navy to dark cyan */
}

.service-block:nth-child(5)::before, .service-block:nth-child(5)::after {
    background: linear-gradient(315deg, #3B2A6D, #A67C00); /* Deep purple to darker gold */
}

.service-block:nth-child(6)::before, .service-block:nth-child(6)::after {
    background: linear-gradient(315deg, #1F1447, #A67C00); /* Darker navy to darker gold */
}

.service-block:nth-child(7)::before, .service-block:nth-child(7)::after {
    background: linear-gradient(315deg, #2A2E3B, #B8004C); /* Dark gray to dark pink */
}

.service-block:nth-child(8)::before, .service-block:nth-child(8)::after {
    background: linear-gradient(315deg, #0D1B47, #B8004C); /* Dark navy to dark pink */
}

.service-block:nth-child(9)::before, .service-block:nth-child(9)::after {
    background: linear-gradient(315deg, #3B2A6D, #00A3CC); /* Deep purple to dark cyan */
}

.service-block:nth-child(10)::before, .service-block:nth-child(10)::after {
    background: linear-gradient(315deg, #2A2E3B, #A67C00); /* Dark gray to darker gold */
}

.service-block:nth-child(11)::before, .service-block:nth-child(11)::after {
    background: linear-gradient(315deg, #0D1B47, #00A3CC); /* Dark navy to dark cyan */
}

.service-block:nth-child(12)::before, .service-block:nth-child(12)::after {
    background: linear-gradient(315deg, #3B2A6D, #B8004C); /* Deep purple to dark pink */
}

.service-block:nth-child(13)::before, .service-block:nth-child(13)::after {
    background: linear-gradient(315deg, #1F1447, #A67C00); /* Darker navy to darker gold */
}

/* Gradients for trust-block (Light Mode) */
body.light-mode .trust-block:nth-child(1)::before, body.light-mode .trust-block:nth-child(1)::after,
body.light-mode .service-block:nth-child(1)::before, body.light-mode .service-block:nth-child(1)::after {
    background: linear-gradient(315deg, #FCD34D, #60A5FA); /* Light gold to soft blue */
}

body.light-mode .trust-block:nth-child(2)::before, body.light-mode .trust-block:nth-child(2)::after,
body.light-mode .service-block:nth-child(2)::before, body.light-mode .service-block:nth-child(2)::after {
    background: linear-gradient(315deg, #A3E635, #F87171); /* Light green to soft red */
}

body.light-mode .trust-block:nth-child(3)::before, body.light-mode .trust-block:nth-child(3)::after,
body.light-mode .service-block:nth-child(3)::before, body.light-mode .service-block:nth-child(3)::after {
    background: linear-gradient(315deg, #FBCFE8, #4ADE80); /* Soft pink to green */
}

body.light-mode .trust-block:nth-child(4)::before, body.light-mode .trust-block:nth-child(4)::after,
body.light-mode .service-block:nth-child(4)::before, body.light-mode .service-block:nth-child(4)::after {
    background: linear-gradient(315deg, #FCD34D, #A78BFA); /* Light gold to soft purple */
}

body.light-mode .service-block:nth-child(5)::before, body.light-mode .service-block:nth-child(5)::after {
    background: linear-gradient(315deg, #FCD34D, #F87171); /* Light gold to soft red */
}

body.light-mode .service-block:nth-child(6)::before, body.light-mode .service-block:nth-child(6)::after {
    background: linear-gradient(315deg, #A3E635, #60A5FA); /* Light green to soft blue */
}

body.light-mode .service-block:nth-child(7)::before, body.light-mode .service-block:nth-child(7)::after {
    background: linear-gradient(315deg, #FBCFE8, #A78BFA); /* Soft pink to soft purple */
}

body.light-mode .service-block:nth-child(8)::before, body.light-mode .service-block:nth-child(8)::after {
    background: linear-gradient(315deg, #FCD34D, #4ADE80); /* Light gold to green */
}

body.light-mode .service-block:nth-child(9)::before, body.light-mode .service-block:nth-child(9)::after {
    background: linear-gradient(315deg, #A3E635, #FBCFE8); /* Light green to soft pink */
}

body.light-mode .service-block:nth-child(10)::before, body.light-mode .service-block:nth-child(10)::after {
    background: linear-gradient(315deg, #FCD34D, #60A5FA); /* Light gold to soft blue */
}

body.light-mode .service-block:nth-child(11)::before, body.light-mode .service-block:nth-child(11)::after {
    background: linear-gradient(315deg, #A3E635, #F87171); /* Light green to soft red */
}

body.light-mode .service-block:nth-child(12)::before, body.light-mode .service-block:nth-child(12)::after {
    background: linear-gradient(315deg, #FBCFE8, #4ADE80); /* Soft pink to green */
}

body.light-mode .service-block:nth-child(13)::before, body.light-mode .service-block:nth-child(13)::after {
    background: linear-gradient(315deg, #FCD34D, #A78BFA); /* Light gold to soft purple */
}

.trust-block span, .service-block span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.trust-block span::before, .service-block span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.1s;
    animation: animate 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.trust-block:hover span::before, .service-block:hover span::before {
    top: -50px;
    left: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

.trust-block span::after, .service-block span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.5s;
    animation: animate 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    animation-delay: -1s;
}

.trust-block:hover span::after, .service-block:hover span::after {
    bottom: -50px;
    right: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

@keyframes animate {
    0%, 100% {
        transform: translateY(10px);
    }
    50% {
        transform: translate(-10px);
    }
}

.trust-block .content, .service-block .content {
    position: relative;
    left: 0;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03); /* Slightly darker para modo oscuro */
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
    border-radius: 8px;
    z-index: 1;
    transition: 0.5s;
    color: #F8FAFC; /* Blanco para modo oscuro */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.light-mode .trust-block .content, body.light-mode .service-block .content {
    background: rgba(255, 255, 255, 0.1); /* Más opaco para efecto vidrio esmerilado en modo claro */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Sombra más fuerte para profundidad */
}

.trust-block:hover .content, .service-block:hover .content {
    left: -25px;
    padding: 60px 40px;
}

.trust-block .content h3, .service-block .content h3 {
    font-size: 2em;
    color: #F8FAFC; /* Blanco para modo oscuro */
    margin-bottom: 10px;
}

.trust-block .content p, .service-block .content p {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4em;
    color: #F8FAFC; /* Blanco para modo oscuro */
}

body.light-mode .trust-block .content h3, body.light-mode .service-block .content h3,
body.light-mode .trust-block .content p, body.light-mode .service-block .content p {
    color: #1F2937; /* Dark gray para modo claro */
}

.service-block .content a {
    display: inline-block;
    font-size: 1.1em;
    color: #F8FAFC; /* Blanco para modo oscuro */
    background: #A67C00; /* Darker gold para modo oscuro */
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}

.service-block .content a:hover {
    background: #C49400; /* Slightly lighter gold en hover para modo oscuro */
    border: 1px solid rgba(166, 124, 0, 0.4);
    box-shadow: 0 1px 15px rgba(166, 124, 0, 0.3);
}

body.light-mode .service-block .content a {
    color: #1F2937; /* Dark gray para modo claro */
    background: #FBBF24; /* Bright gold para modo claro */
}

body.light-mode .service-block .content a:hover {
    background: #F59E0B; /* Slightly darker gold en hover para modo claro */
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 1px 15px rgba(245, 158, 11, 0.3);
}

.glow-border {
    position: relative;
    border: 2px solid rgba(248, 250, 252, 0.7); /* Slightly transparent white en modo oscuro */
    box-shadow: 0 0 12px rgba(248, 250, 252, 0.2); /* Sombra más oscura */
    border-radius: 12px; /* Bordes más redondeados */
}

body.light-mode .glow-border {
    border: 2px solid #D1D5DB; /* Gris claro para bordes en modo claro */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1); /* Sombra suave para modo claro */
}

/* Scroll Velocity */
.animate-scroll {
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#scroll-velocity .bg-gradient-to-r.from-area-gradient {
    background: linear-gradient(to right, rgba(45, 27, 78, 1) 0%, rgba(45, 27, 78, 0) 100%); /* Match .area en modo oscuro */
}

body.light-mode #scroll-velocity .bg-gradient-to-r.from-area-gradient {
    background: linear-gradient(to right, rgba(252, 211, 77, 1) 0%, rgba(252, 211, 77, 0) 100%); /* Match .area en modo claro */
}

#scroll-velocity .bg-gradient-to-l.from-area-gradient {
    background: linear-gradient(to left, rgba(45, 27, 78, 1) 0%, rgba(45, 27, 78, 0) 100%); /* Match .area en modo oscuro */
}

body.light-mode #scroll-velocity .bg-gradient-to-l.from-area-gradient {
    background: linear-gradient(to left, rgba(252, 211, 77, 1) 0%, rgba(252, 211, 77, 0) 100%); /* Match .area en modo claro */
}

/* Call to Action */
.cta-button {
    position: relative;
    z-index: 10;
}

/* Responsive adjustments for trust-block */
@media (max-width: 768px) {
    .trust-block {
        flex: 1 1 280px; /* Smaller minimum width for tablets */
        max-width: 320px; /* Cap width for consistency */
    }
}

@media (max-width: 480px) {
    .trust-block {
        flex: 1 1 100%; /* Full width for small screens */
        max-width: 300px; /* Slightly smaller for mobile */
    }
}

/* Responsive adjustments for service-block */
@media (max-width: 1024px) {
    .service-block {
        flex: 1 1 280px; /* Allow cards to shrink for tablets */
        max-width: 320px; /* Cap width for consistency */
    }
}

@media (max-width: 768px) {
    .service-block {
        flex: 1 1 280px; /* Smaller minimum width for smaller tablets */
        max-width: 300px; /* Slightly smaller for consistency */
    }
}

@media (max-width: 480px) {
    .service-block {
        flex: 1 1 100%; /* Full width for mobile */
        max-width: 300px; /* Cap width for mobile */
    }
}