/* ==========================================================================
   redfindata.com.ar - Hoja de Estilos Principal (CSS3)
   Alineada con el diseño y colores de redfin.com.ar (Rosario, Argentina)
   ========================================================================== */

/* Importar tipografía Raleway de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* Variables de diseño del sitio madre (Naranja y Verde) */
:root {
    --primary: #EE7F00; /* Naranja principal del sitio madre */
    --primary-rgb: 238, 127, 0;
    --primary-hover: #97BF0D; /* Hover transiciona al verde */
    
    --secondary: #97BF0D; /* Verde secundario del sitio madre */
    --secondary-rgb: 151, 191, 13;
    --secondary-hover: #EE7F00; /* Hover transiciona al naranja */
    
    --text-color: #3a3a3a;
    --text-muted: #707070;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-accent: #f8faf0; /* Fondo sutil con tinte verde */
    --border-color: #e5e7eb;
    
    --footer-bg: #EE7F00; /* Pie de página principal naranja */
    --footer-subbg: #944F00; /* Sub-footer marrón/naranja oscuro del sitio madre */
    --footer-text: #ffffff;
    
    --font-sans: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-fast: 0.2s linear;
    --transition-normal: 0.3s ease;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 93.75%; /* Ajuste a 15px base (15/16 = 0.9375) */
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, a:focus {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Tamaños de encabezado */
h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--secondary);
}

h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--secondary);
}

h3 {
    font-size: 25px;
    font-weight: 700;
    color: var(--secondary);
}

h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
}

::selection {
    background-color: var(--primary);
    color: var(--bg-white);
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones con bordes y padding del sitio madre */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 15px;
    padding: 15px 30px;
    border-radius: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary); /* Naranja */
    color: var(--bg-white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover); /* Verde */
    border-color: var(--primary-hover);
    color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary); /* Naranja */
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-hover); /* Verde */
    border-color: var(--primary-hover);
    color: var(--bg-white);
}

.btn-dark {
    background-color: var(--secondary); /* Verde */
    color: var(--bg-white);
    border-color: var(--secondary);
}

.btn-dark:hover {
    background-color: var(--primary); /* Naranja */
    border-color: var(--primary);
    color: var(--bg-white);
}

/* Header & Barra de navegación */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-weight: 800;
    color: var(--primary); /* Naranja "RED" */
    text-transform: uppercase;
}

.logo-text .logo-fin {
    color: var(--secondary); /* Verde "FIN" */
}

.logo-text .logo-data {
    color: var(--text-color); /* Gris "DATA" */
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary); /* Subrayado verde como en el sitio original */
    transition: var(--transition-normal);
}

.nav-item.active {
    color: var(--secondary); /* Item activo verde */
}

.nav-item.active::after {
    width: 100%;
}

.nav-item:hover {
    color: var(--primary); /* Hover naranja */
}

.nav-item:hover::after {
    width: 100%;
    background-color: var(--primary);
}

.nav-btn {
    padding: 10px 20px;
    font-size: 13px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary); /* Botón mobile verde */
    cursor: pointer;
}

/* Hero Section con gradiente verde en la base similar al sitio madre */
.hero {
    position: relative;
    padding: 5rem 0 8rem;
    background: linear-gradient(180deg, #ffffff 30%, rgba(151, 191, 13, 0.15) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 550px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(151, 191, 13, 0.12);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(151, 191, 13, 0.2);
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 1.5rem;
    color: var(--primary); /* Título del hero naranja */
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-dashboard-preview {
    width: 100%;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.08));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Separadores inclinados naranjas del sitio madre (opacity tilt) */
.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.shape-divider .shape-fill {
    fill: var(--primary); /* Banda divisoria naranja */
}

/* Features / Modules Section */
.features {
    background-color: var(--bg-light);
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 30px;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 2px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--bg-accent);
    color: var(--secondary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: var(--bg-white);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 1.5rem;
}

.feature-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.feature-link i {
    transition: var(--transition-fast);
}

.feature-link:hover {
    color: var(--secondary);
}

.feature-link:hover i {
    transform: translateX(3px);
}

/* Security & Access Section */
.security {
    padding: 6rem 0;
    background-color: var(--bg-white);
    position: relative;
}

.security-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--bg-white);
    padding: 4.5rem 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.security-content h2 {
    color: var(--bg-white);
    font-size: 30px;
    margin-bottom: 1.25rem;
}

.security-content p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 16px;
}

.security-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 500;
}

.bullet-item i {
    color: var(--primary);
}

.security-action {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 3rem;
}

.security-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(var(--primary-rgb), 0.2)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.6)); }
}

.security-action .btn {
    width: 100%;
}

/* Statistics / Info Banner */
.stats-banner {
    background-color: var(--bg-accent);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-weight: 700;
    color: var(--secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer Naranja */
footer {
    background-color: var(--footer-bg); /* Naranja */
    color: var(--footer-text); /* Blanco */
    padding: 5rem 0 2rem;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-footer {
    color: var(--bg-white);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-footer span {
    color: var(--secondary); /* Verde "DATA" para contraste en footer naranja */
    font-weight: 800;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--secondary); /* Hover verde */
    color: var(--bg-white);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--bg-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary); /* Hover verde */
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.footer-contact i {
    color: var(--secondary); /* Iconos del pie de página verdes */
    margin-top: 0.25rem;
}

.footer-fiscal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-fiscal img {
    width: 90px;
    border-radius: 2px;
    transition: var(--transition-fast);
    background-color: #ffffff;
    padding: 3px;
}

.footer-fiscal img:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Sub-footer con fondo naranja/marrón oscuro */
.footer-bottom-bg {
    background-color: var(--footer-subbg);
    margin-top: 2rem;
    padding: 2rem 0;
}

.footer-divider {
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copy strong {
    color: var(--bg-white);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.footer-legal-links a:hover {
    color: var(--secondary);
}

/* Responsividad (Media Queries) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 35px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-box {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
    
    .security-action {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }
    
    .footer-grid > *:last-child {
        grid-column: span 3;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 2rem;
    }
    
    .footer-fiscal {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
        transition: all var(--transition-normal);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-grid > *:last-child {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        border-top: none;
        padding-top: 0;
    }
    
    .footer-divider {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .security-bullets {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
