/* assets/css/style.css */
:root {
    /* Color Palette - Violet/Purple Premium Theme (Light Mode background) */
    --bg-color: #ffffff; /* White background */
    --card-bg: rgba(255, 255, 255, 0.95); /* White glassmorphism for cards */
    --card-border: rgba(168, 85, 247, 0.2); /* Soft purple border */
    --primary: #7c3aed; /* Violet accent / button */
    --primary-hover: #6d28d9; /* Purple hover */
    --accent: #d946ef; /* Fuchsia accent */
    --accent-hover: #c084fc;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-white: #1e0a3d; /* Dark violet text */
    --text-gray: #5b21b6; /* Secondary violet-gray text */
    --border-color: rgba(168, 85, 247, 0.15); /* Purple borders */
    --glass: rgba(255, 255, 255, 0.95);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(124, 58, 237, 0.03);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(124, 58, 237, 0.05);
    
    --font-family: 'Inter', 'Arial', "Helvetica Neue", Arial, sans-serif;
}

/* Reset and Globals */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    background-image: 
      linear-gradient(rgba(168, 85, 247, 0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(168, 85, 247, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glows - Disabled for Light Theme */
body::before, body::after {
    display: none !important;
}

/* Header & Navbar */
.main-header {
    background-color: rgba(255, 255, 255, 0.95); /* Translucent white header */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    max-width: 100%;
    padding: 0 2rem 0 1rem; /* Flush to left edge */
    height: 85px; /* Taller header */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Arial Bold', "Arial", sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.2px;
    color: #1e0a3d; /* Dark violet logo */
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary);
}

.navbar-brand img {
    height: 52px; /* Larger logo size */
    vertical-align: middle;
    transition: transform 0.3s;
}
.navbar-brand img:hover {
    transform: scale(1.03);
}

.navbar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #1e0a3d; /* Dark violet toggle */
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-links a {
    color: #4c1d95; /* Dark violet links on light header */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: var(--primary); /* Violet hover */
}

.btn-login-nav {
    background: var(--primary); /* Violet button */
    color: white !important;
    padding: 0.6rem 1.6rem;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    font-weight: 700 !important;
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.45);
}

.user-menu-nav {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

/* Responsive Navbar */
@media (max-width: 992px) {
    .navbar-toggle-btn {
        display: block;
    }
    .navbar-links {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: #ffffff; /* White menu on mobile */
        border-bottom: 1px solid rgba(168, 85, 247, 0.15);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
    }
    .navbar-links.active {
        display: flex;
    }
    .user-menu-nav {
        border-left: none;
        padding-left: 0;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left aligned content */
    text-align: left; /* Left aligned text */
    padding: 120px 10% 2rem 10%;
    position: relative;
    background: url('../images/imagen-fondo01.jpg') no-repeat center center;
    background-size: cover;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: #ffffff !important; /* White text for contrast */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}

.hero p {
    font-size: 1.4rem; /* Sized up */
    color: #e2e8f0 !important; /* Light color for contrast */
    max-width: 600px;
    margin: 0 0 2.5rem 0; /* Left aligned margins */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}

.hero-btns {
    display: flex;
    justify-content: flex-start; /* Left aligned buttons */
    gap: 1.2rem;
}

.btn-hero {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s;
}

.btn-hero.ver-planes {
    background: #2563eb; /* Blue button */
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-hero.ver-planes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-hero.contactar {
    background: transparent;
    border: 1px solid #ffffff; /* White outline */
    color: #ffffff;
}

.btn-hero.contactar:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Common Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    width: 100%;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 750;
    text-align: center;
    margin: 0 auto 3.5rem auto;
    display: table;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 2.5rem;
    border-radius: 50px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #1e0a3d !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Cards & Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 20px; /* More rounded corners */
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    color: #1e1b4b; /* Dark navy text inside cards */
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.15), 0 0 15px rgba(168, 85, 247, 0.1);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e1b4b; /* Dark navy heading */
}

.card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--primary); /* Violet price color */
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    color: #4c1d95; /* Dark purple bullet text */
    font-size: 0.95rem;
}

.card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* Clean Key-Value List inside Cards */
.card ul.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    color: #4c1d95;
}

.card ul.plan-features li::before {
    content: none !important;
}

.card ul.plan-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(168, 85, 247, 0.2);
    padding: 0.6rem 0;
    margin: 0;
    font-size: 0.9rem;
}

.card ul.plan-features li:last-child {
    border-bottom: none;
}

.card ul.plan-features li span.feature-name {
    color: #6d28d9;
}

.card ul.plan-features li span.feature-value {
    font-weight: 700;
    color: #1e0a3d;
    text-align: right;
}

.card p {
    color: #6d28d9 !important;
}

/* Card Tables Override */
.card table {
    color: #2e1065 !important;
}
.card th {
    background-color: rgba(168, 85, 247, 0.08) !important;
    color: #1e0a3d !important;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2) !important;
}
.card td {
    color: #4c1d95 !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1) !important;
}
.card tr:hover td {
    background-color: rgba(168, 85, 247, 0.04) !important;
}

/* Card Labels Override */
.card label {
    color: #4c1d95 !important;
}

/* Readonly and Disabled Inputs Override inside Cards */
.card input[readonly], .card input[disabled], .card select[disabled], .card textarea[disabled] {
    background-color: rgba(168, 85, 247, 0.08) !important;
    color: #4c1d95 !important;
    border-color: rgba(168, 85, 247, 0.15) !important;
    cursor: not-allowed;
}

/* Login/Register Card Styles Override */
.login-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2e1065 !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
}
.login-card h2, .login-card p, .login-card label, .login-card span, .login-card .input-icon {
    color: #4c1d95 !important;
}
.login-card .brand-title {
    background: linear-gradient(135deg, #1e0a3d 0%, var(--primary) 60%, var(--accent) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.login-card .brand-subtitle {
    color: #6d28d9 !important;
}
.login-card .input-icon {
    color: #6d28d9 !important;
}
.login-container, .login-container p, .login-container div {
    color: #4c1d95 !important;
}
.login-container a {
    color: var(--primary) !important;
    font-weight: 600;
}
.login-container a:hover {
    color: var(--primary-hover) !important;
}

input.form-control {
    padding-left: 2.8rem !important;
    background: #ffffff !important;
    color: #1e0a3d !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
}
input.form-control:focus {
    background: #ffffff !important;
    color: #1e0a3d !important;
    border-color: var(--primary) !important;
}

.btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.45);
}

.ti-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Domain Search bar */
.domain-search-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.flex-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
    margin-left: 2rem;
}

.flex-container input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.flex-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(61, 47, 143, 0.15);
}

.flex-container .btn {
    width: auto;
    padding: 0.8rem 2.2rem;
}

/* Tables styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: var(--text-white);
    background: transparent;
}

th, td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #f1f5f9;
    border-bottom: 2px solid var(--border-color);
}

tr:hover td {
    background-color: rgba(61, 47, 143, 0.015);
}

/* Forms general styling */
label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-gray);
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-sm);
    color: #1e0a3d;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: #ffffff;
}

/* Scroll To Top button */
#volverArriba {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#volverArriba.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#volverArriba:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Dropdown Menus */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff; /* White dropdown */
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    min-width: 185px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 1100;
}

.dropdown-menu a {
    color: #4c1d95 !important; /* Dark violet links */
    padding: 0.6rem 1.2rem !important;
    text-decoration: none;
    display: block !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: rgba(168, 85, 247, 0.05);
    color: var(--primary) !important; /* Violet hover */
    border-left: 3px solid var(--primary);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        display: none; /* Hidden by default on mobile */
        background-color: rgba(168, 85, 247, 0.05); /* Light violet background */
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        min-width: 100%;
    }
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
}

/* ==========================================
   Full-Width Sections & Backgrounds Redesign
   ========================================== */
.section-full {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 7rem 0 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-sizing: border-box;
}

.section-overlay {
    display: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Background Assignments */
.servicios-principales-section {
    background-image: none !important;
    background-color: transparent;
}

.hosting-section {
    background-image: url('../images/hosting-ok.png');
}

.radio-section {
    background-image: url('../images/streaming-ok.png');
}

.software-section {
    background-image: url('../images/software-ok.png');
}

.servicios-ti-section {
    background-image: url('../images/serviceTI-ok.png');
}

/* Custom Image Icons for Services */
.service-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .service-icon-img {
    transform: scale(1.15) translateY(-5px);
}

/* Better legibility for section subtitles on background images */
.section-container p, .section-full p {
    text-shadow: none !important;
    color: #4c1d95 !important;
}
