:root {
    /* Warm & Trustworthy Color Palette */
    --primary: #2D6A87; /* Trustworthy Blue */
    --primary-light: #5A99B9;
    --secondary: #E07A5F; /* Warm Terracotta */
    --secondary-light: #F4A261;
    --bg-main: #F7F5F0; /* Warm Cream */
    --bg-alt: #FFFFFF;
    --text-dark: #2B2D42;
    --text-light: #8D99AE;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(45, 106, 135, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}

.glass-nav.scrolled {
    padding: 0.5rem 5%;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-container h1 {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 600;
    color: var(--text-dark);
}

nav a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(45, 106, 135, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* Section Layout */
.section-spacing {
    padding: 100px 5%;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 15% 50%, rgba(90, 153, 185, 0.1), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(224, 122, 95, 0.1), transparent 50%);
}

.hero-content {
    text-align: center;
    padding: 50px;
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.module-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(45, 106, 135, 0.2);
}

.module-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Hogar Seguro specific */
.bg-light {
    background-color: var(--bg-alt);
}

#hogar-seguro .module-icon {
    background: var(--secondary);
    box-shadow: 0 10px 20px rgba(224, 122, 95, 0.2);
}

#hogar-seguro .module-card h3 {
    color: var(--secondary);
}

.deliverables {
    text-align: center;
    padding: 40px;
    max-width: 800px;
    margin: 50px auto 0;
    border: 2px dashed var(--secondary-light);
}

.deliverables h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding-bottom: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-light);
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

.whatsapp-btn {
    background-color: #25D366;
    margin: 15px 0;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.tarifas-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Floating Action Button (FAB) WhatsApp */
.fab-whatsapp {
    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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none; /* simple mobile version */
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-spacing {
        padding: 60px 5%;
    }
}
