/* ==========================================
   PEDRO IT SOLUTIONS - Professional Website
   Colors: Cuba 🇨🇺 + USA 🇺🇸
   ========================================== */

/* ==========================================
   VARIABLES & RESET
   ========================================== */

:root {
    /* Colores CU + US */
    --primary-blue: #1a237e;
    --secondary-blue: #42a5f5;
    --accent-red: #c62828;
    --light-red: #ef5350;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e0e0e0;
    --gray: #757575;
    --gray-dark: #333333;
    --black: #121212;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, #283593 50%, var(--accent-red) 100%);
    --gradient-header: linear-gradient(135deg, var(--primary-blue) 0%, #0d47a1 100%);
    --gradient-cta: linear-gradient(135deg, var(--accent-red) 0%, #b71c1c 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 30px rgba(66,165,245,0.3);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--off-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    background: var(--gradient-header);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo::before {
    content: "⚡";
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    gap: 0.5rem;
}

nav ul li a {
    color: var(--white);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: var(--transition-normal);
    z-index: -1;
}

nav ul li a:hover::before,
nav ul li a.active::before {
    left: 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-blue);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 100px;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5rem 3rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-red);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border: 3px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-red {
    background: var(--accent-red);
    color: var(--white);
}

.btn-red::before {
    background: var(--primary-blue);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

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

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

.feature:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.feature p {
    color: var(--gray);
    font-size: 1rem;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.about h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about p {
    color: var(--gray);
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
}

/* ==========================================
   STATS SECTION
   ========================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--gradient-header);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   PAGE HEADER
   ========================================== */

.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 3rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ==========================================
   SERVICES LIST
   ========================================== */

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition-normal);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.service-card ul {
    color: var(--gray);
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.service-card ul li::before {
    content: "✓";
    color: var(--accent-red);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta {
    background: var(--gradient-cta);
    color: var(--white);
    padding: 4rem 3rem;
    text-align: center;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background: var(--gradient-header);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.contact-info a {
    color: var(--secondary-blue);
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-normal);
    background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(66,165,245,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.contact-form .btn::before {
    background: var(--gradient-cta);
}

/* ==========================================
   TRUST BADGES
   ========================================== */

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-icon {
    font-size: 2.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: var(--gradient-header);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--secondary-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--secondary-blue);
}

/* ==========================================
   SECURITY BADGES
   ========================================== */

.security-section {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.security-section h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: var(--radius-md);
    min-width: 150px;
    transition: var(--transition-normal);
}

.security-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.security-badge span:first-child {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.security-badge span:last-child {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
        padding-top: 140px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 2rem;
    }
    
    .cta {
        padding: 2.5rem 1.5rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-red { color: var(--accent-red); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }