/* --- ESTILOS CSS (El diseño visual mejorado) --- */
:root {
    --color-rojo: #E60000;
    --color-plata: #C0C0C0;
    --fondo-oscuro: #121212;
    --fondo-tarjeta: #1E1E1E;
    --texto-blanco: #ffffff;
}

/* Animaciones profesionales */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--fondo-oscuro);
    color: #e0e0e0;
    line-height: 1.7;
    text-align: center;
}

/* Tipografía elegante */
h1, h2, h3 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    color: var(--texto-blanco);
}

h1 { animation: fadeInDown 0.8s ease-out; font-size: 3.2rem; }
h2 { animation: fadeInUp 0.8s ease-out; font-size: 2.5rem; margin-bottom: 40px; }
h3 { font-size: 1.4rem; }

p { color: #e0e0e0; line-height: 1.8; }

.resaltado-rojo { color: var(--color-rojo); }
.container { width: 90%; max-width: 1200px; margin: auto; padding: 20px 0; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-rojo);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-rojo);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-rojo);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Navegación sticky mejorada */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(18,18,18,0.97) 0%, rgba(18,18,18,0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 0, 0, 0.3);
    padding: 15px 0;
    animation: slideInLeft 0.6s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

nav a {
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--color-rojo);
    border-bottom-color: var(--color-rojo);
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}

/* --- HEADER / PORTADA OPTIMIZADO --- */
#hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.85) 50%, rgba(230, 0, 0, 0.05) 100%), 
                url('https://images.unsplash.com/photo-1591799264318-7e6ef8ddb7ea?ixlib=rb-4.0.3&auto=format&fit=crop&w=1074&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 3px solid var(--color-rojo);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(18,18,18,0.5) 100%);
    pointer-events: none;
}

#hero > * {
    position: relative;
    z-index: 1;
}

.logo-img {
    width: 280px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 25px rgba(230, 0, 0, 0.7));
    border-radius: 12px;
    animation: fadeInDown 1s ease-out;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 0.8s ease-out 0.2s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#hero h1 span { color: var(--color-plata); }

#hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    color: #d0d0d0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

#hero .btn {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    font-size: 1rem;
    padding: 15px 40px;
}

/* --- SECCIÓN DE SERVICIOS MEJORADA --- */
#servicios {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(230, 0, 0, 0.02) 100%);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-rojo), transparent);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    align-items: stretch;
}

.servicio-card {
    background: linear-gradient(135deg, var(--fondo-tarjeta) 0%, rgba(30, 30, 30, 0.7) 100%);
    padding: 45px;
    border-radius: 12px;
    border-top: 4px solid var(--color-rojo);
    border: 1px solid rgba(230, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    text-align: left;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s;
}

.servicio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 45px rgba(230, 0, 0, 0.25);
    border-color: rgba(230, 0, 0, 0.3);
}

.servicio-card:hover::before {
    top: -50%;
    right: -50%;
}

.servicio-card:nth-child(1) { animation-delay: 0.1s; }
.servicio-card:nth-child(2) { animation-delay: 0.2s; }
.servicio-card:nth-child(3) { animation-delay: 0.3s; }
.servicio-card:nth-child(4) { animation-delay: 0.4s; }
.servicio-card:nth-child(5) { animation-delay: 0.5s; }

.icon-box {
    font-size: 3.5rem;
    color: var(--color-rojo);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.servicio-card:hover .icon-box {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(230, 0, 0, 0.5));
}

.servicio-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: left;
}

.servicio-card p {
    color: #bbb;
    font-size: 0.95rem;
    text-align: left;
}

/* --- SECCIÓN DE CONFIANZA CON BADGES --- */
#nosotros {
    background: linear-gradient(135deg, var(--fondo-tarjeta) 0%, rgba(30, 30, 30, 0.5) 100%);
    padding: 120px 0;
    border-top: 1px solid rgba(230, 0, 0, 0.2);
    border-bottom: 1px solid rgba(230, 0, 0, 0.2);
}

.nosotros-content {
    max-width: 800px;
    margin: auto;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.nosotros-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.badge {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.15) 0%, rgba(230, 0, 0, 0.05) 100%);
    border: 1px solid rgba(230, 0, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s;
    cursor: pointer;
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.15);
    border-color: rgba(230, 0, 0, 0.5);
}

.badge i {
    font-size: 3rem;
    color: var(--color-rojo);
    margin-bottom: 15px;
    display: block;
}

.badge h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.badge p {
    font-size: 0.85rem;
    color: #bbb;
}

/* --- TESTIMONIOS SECCIÓN --- */
#testimonios {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(30,30,30,0.3) 0%, transparent 100%);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonio-card {
    background-color: var(--fondo-tarjeta);
    padding: 35px;
    border-radius: 12px;
    border-left: 5px solid var(--color-rojo);
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    transition: all 0.3s;
    position: relative;
}

.testimonio-card::before {
    content: '❝';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 4rem;
    color: rgba(230, 0, 0, 0.1);
}

.testimonio-card:nth-child(1) { animation-delay: 0.1s; }
.testimonio-card:nth-child(2) { animation-delay: 0.2s; }
.testimonio-card:nth-child(3) { animation-delay: 0.3s; }

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.2);
}

.stars {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonio-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.testimonio-autor {
    font-weight: 700;
    color: var(--color-rojo);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- SECCIÓN CTA DESTACADA --- */
#cta-section {
    background: linear-gradient(135deg, var(--color-rojo) 0%, #cc0000 50%, #aa0000 100%);
    padding: 100px 20px;
    text-align: center;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

#cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

#cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

#cta-section > * {
    position: relative;
    z-index: 1;
}

#cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

#cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#cta-section .btn {
    background-color: white;
    color: var(--color-rojo);
    border-color: white;
    font-size: 1rem;
    padding: 18px 45px;
}

#cta-section .btn:hover {
    background-color: rgba(255,255,255,0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- OFERTAS / CATÁLOGO --- */
#ofertas {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(230, 0, 0, 0.03) 0%, transparent 100%);
    border-top: 1px solid rgba(230, 0, 0, 0.1);
    border-bottom: 1px solid rgba(230, 0, 0, 0.1);
}

.container-center {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    position: relative;
    color: #333;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-rojo);
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 10;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: none;
    text-align: left;
    animation: none;
    font-weight: 600;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.product-specs p {
    color: #666;
    font-size: 0.85rem;
    text-align: left;
    margin: 0;
    animation: none;
}

.product-specs i {
    color: var(--color-rojo);
    margin-right: 8px;
    width: 16px;
}

.product-info button {
    background-color: var(--color-rojo);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.9rem;
    margin-top: auto;
}

.product-info button:hover {
    background-color: #cc0000;
}

/* --- FOOTER MEJORADO --- */
footer {
    background-color: #0a0a0a;
    padding: 100px 0 30px;
    text-align: center;
    margin-top: auto;
    border-top: 2px solid rgba(230, 0, 0, 0.2);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    color: var(--color-rojo);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    text-align: left;
}

.footer-section ul li {
    margin: 15px 0;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--color-rojo);
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}

.footer-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 20px;
    filter: brightness(1.1);
}

.contacto-box {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.1) 0%, rgba(230, 0, 0, 0.05) 100%);
    border: 1px solid rgba(230, 0, 0, 0.3);
    padding: 40px;
    border-radius: 12px;
    display: inline-block;
    margin: 30px 0;
}

.contacto-info p {
    margin: 20px 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0d0d0;
}

.contacto-info i {
    color: var(--color-rojo);
    margin-right: 20px;
    font-size: 1.3rem;
    width: 30px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #222;
    padding-top: 25px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    nav ul { gap: 15px; }
    nav a { font-size: 0.8rem; }

    #hero {
        min-height: 50vh;
        padding: 50px 20px;
    }
    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1rem; }
    .logo-img { width: 250px; }

    .section-title { font-size: 1.8rem; margin-bottom: 40px; }

    .servicios-grid { gap: 20px; }
    .servicio-card { padding: 30px; }

    .trust-badges { grid-template-columns: 1fr; }
    .testimonios-grid { grid-template-columns: 1fr; }

    #cta-section {
        padding: 50px 20px;
        margin: 50px 0;
    }
    #cta-section h2 { font-size: 1.8rem; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacto-box { padding: 25px; }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card img {
        height: 150px;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 180px;
    }
}

.hidden {
    display: none !important;
}

.btn-servicio {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 25px;
    padding: 12px 20px;
    font-size: 0.85rem;
}
