/*
Theme Name: RP Total Supply & Services V2
Theme URI: https://rpsupplyservices.com/
Author: RP Total Supply & Services
Description: Tema comercial editable desde WordPress para RP Total Supply & Services.
Version: 2.0.0
Text Domain: rp-total-supply-v2
*/
/* --- PALETA DE COLORES Y ESTILOS GLOBALES --- */
        :root {
            --rojo-industrial: #D61C22; /* Rojo brillante/metálico */
            --gris-metalico: #7B868C;    /* Gris acero */
            --gris-oscuro: #1E2229;      /* Fondo oscuro para contraste */
            --blanco: #FFFFFF;
            --texto-oscuro: #2D3142;
            --texto-claro: #F4F5F7;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en los enlaces */
        }

        body {
            font-family: 'Open Sans', sans-serif;
            color: var(--texto-oscuro);
            background-color: var(--blanco);
            line-height: 1.6;
            overflow-x: hidden;
        }

        h1, h2, h3 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* --- HEADER / NAVEGACIÓN DINÁMICA --- */
        header {
            background-color: var(--blanco);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 20px 0;
            transition: all 0.4s ease; /* Transición para el encogimiento al hacer scroll */
        }

        /* Clase dinámica añadida con JavaScript */
        header.scrolled {
            padding: 10px 0;
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px); /* Efecto difuminado moderno estilo cristal */
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-placeholder {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--gris-oscuro);
        }

        .logo-placeholder span {
            color: var(--rojo-industrial);
        }

        .nav-contact {
            display: flex;
            gap: 20px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--gris-oscuro);
            position: relative;
        }

        .contact-item i {
            color: var(--rojo-industrial);
            transition: transform 0.3s ease;
        }

        .contact-item:hover i {
            transform: scale(1.2);
        }

        /* --- SECCIÓN HERO --- */
        .hero {
            background: linear-gradient(135deg, rgba(30, 34, 41, 0.95) 40%, rgba(123, 134, 140, 0.8) 100%), 
                        url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
            color: var(--texto-claro);
            padding: 140px 0;
            text-align: left;
            position: relative;
            border-bottom: 5px solid var(--rojo-industrial);
        }

        .hero-content {
            max-width: 700px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s forwards ease-out 0.2s; /* Animación de entrada al cargar */
        }

        .hero h1 {
            font-size: 3.2rem;
            line-height: 1.2;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: -1px;
        }

        .hero h1 span {
            color: var(--rojo-industrial);
        }

        .hero p {
            font-size: 1.35rem;
            margin-bottom: 35px;
            font-weight: 400;
            color: #D1D5DB;
        }

        .btn-cta {
            display: inline-block;
            background-color: var(--rojo-industrial);
            color: var(--blanco);
            padding: 15px 35px;
            font-size: 1.1rem;
            font-weight: 700;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(214, 28, 34, 0.4);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn-cta::after {
            content: '';
            position: absolute;
            transition: all 0.3s ease;
            bottom: 0;
            left: 0;
            right: 0;
            top: 100%;
            z-index: -1;
            background: #b01419;
        }

        .btn-cta:hover::after {
            top: 0;
        }

        .btn-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(214, 28, 34, 0.6);
        }

        /* --- SECCIÓN QUIÉNES SOMOS --- */
        .about {
            padding: 100px 0;
            background-color: #F8FAFC;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .about-text h2 {
            font-size: 2.2rem;
            color: var(--gris-oscuro);
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 15px;
        }

        .about-text h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background-color: var(--rojo-industrial);
        }

        .about-text p {
            font-size: 1.1rem;
            color: #4A5568;
            margin-bottom: 20px;
            text-align: justify;
        }

        /* Elementos animados al hacer Scroll */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        .about-features {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 30px;
        }

        .feature-box {
            background: var(--blanco);
            padding: 25px;
            border-radius: 8px;
            border-left: 4px solid var(--gris-metalico);
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        /* Efecto dinámico interactivo en las tarjetas */
        .feature-box:hover {
            transform: translateY(-7px);
            border-left-color: var(--rojo-industrial);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
        }

        .feature-box i {
            color: var(--rojo-industrial);
            font-size: 1.8rem;
            margin-bottom: 12px;
            transition: transform 0.3s ease;
        }

        .feature-box:hover i {
            transform: rotate(-10deg) scale(1.1); /* Ligero giro interactivo mecánico */
        }

        .feature-box h4 {
            font-weight: 700;
            margin-bottom: 8px;
        }

        /* --- SECCIÓN CONTACTO / FORMULARIO --- */
        .contact-section {
            padding: 100px 0;
            background-color: var(--gris-oscuro);
            color: var(--texto-claro);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 50px;
        }

        .contact-info h2 {
            font-size: 2.2rem;
            margin-bottom: 20px;
        }

        .contact-info p {
            color: #9CA3AF;
            margin-bottom: 30px;
        }

        .info-details {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .info-card {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.03);
            padding: 20px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s ease;
        }

        .info-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(214, 28, 34, 0.5);
            transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
        }

        .info-card i {
            font-size: 2rem;
            color: var(--rojo-industrial);
        }

        /* Estilo específico para el icono verde de WhatsApp en la tarjeta */
        .info-card i.fa-whatsapp {
            color: #25D366; 
        }

        .info-card div h4 {
            font-size: 0.9rem;
            color: #9CA3AF;
            text-transform: uppercase;
        }

        .info-card div p {
            font-size: 1.1rem;
            color: var(--blanco);
            margin: 0;
            font-weight: 600;
        }

        /* Formulario Interactivo */
        .contact-form {
            background: var(--blanco);
            padding: 40px;
            border-radius: 8px;
            color: var(--texto-oscuro);
            box-shadow: 0 10px 30px rgba(0,0,0,0.25);
            position: relative; /* Necesario para la capa de éxito */
        }

        .contact-form h3 {
            margin-bottom: 25px;
            font-size: 1.5rem;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .form-group input, 
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #D1D5DB;
            border-radius: 4px;
            font-family: inherit;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
        }

        .form-group input:focus, 
        .form-group textarea:focus {
            border-color: var(--rojo-industrial);
            box-shadow: 0 0 0 3px rgba(214, 28, 34, 0.15); /* Efecto glow enfocado */
        }

        .btn-submit {
            width: 100%;
            background-color: var(--gris-oscuro);
            color: var(--blanco);
            padding: 14px;
            font-size: 1.1rem;
            font-weight: 700;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-transform: uppercase;
            transition: all 0.3s;
        }

        .btn-submit:hover {
            background-color: var(--rojo-industrial);
            box-shadow: 0 4px 12px rgba(214, 28, 34, 0.3);
        }

        /* Pantalla de éxito de envío dinámico */
        .success-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.98);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            padding: 30px;
            text-align: center;
        }

        .success-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .success-overlay i {
            font-size: 4rem;
            color: #22C55E;
            margin-bottom: 15px;
            transform: scale(0.5);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .success-overlay.show i {
            transform: scale(1);
        }

        /* --- BOTÓN FLOTANTE DE WHATSAPP --- */
        .whatsapp-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #25D366;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            z-index: 999;
            transition: all 0.3s ease;
        }

        .whatsapp-btn:hover {
            transform: scale(1.1);
            background-color: #20BA5A;
        }

        /* --- ANIMACIONES KEYFRAMES --- */
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- DISEÑO RESPONSIVO --- */
        @media (max-width: 992px) {
            .about-grid, .contact-grid {
                grid-template-columns: 1fr;
            }
            .hero h1 {
                font-size: 2.3rem;
            }
            .nav-contact {
                display: none;
            }
            .whatsapp-btn {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
        }

/* V2 theme refinements */
.site-main { min-height: 50vh; }
.logo-image { max-height: 58px; width: auto; display: block; }
.custom-logo-link { display: inline-flex; align-items: center; }
.admin-edit-note { display:none; }
