:root {
  /* Paleta principal (rojos) */
  --primary-color: #E31937;    /* Rojo corporativo principal */
  --primary-dark: #C4122D;     /* 15% más oscuro para hover */
  --primary-light: #FCE8EC;    /* Tinte claro para fondos */
  
  /* Colores secundarios (grises) */
  --secondary-color: #424242;  /* Texto principal */
  --secondary-light: #9E9E9E;  /* Texto secundario */
  --secondary-bg: #F5F5F5;     /* Fondos grises */
  
  /* Colores funcionales */
  --accent-color: #E31937;     /* Mismo rojo para consistencia */
  --success-color: #28A745;    /* Verde para acciones positivas */
  --warning-color: #FFC107;    /* Amarillo para advertencias */
  --info-color: #17A2B8;       /* Azul/cyan para información */
  
  /* Gradientes actualizados */
  --gradient-primary: linear-gradient(135deg, #E31937, #C4122D);
  --gradient-secondary: linear-gradient(135deg, #424242, #212121);
  --gradient-accent: linear-gradient(135deg, #E31937, #FF5252);
  
  /* Fondos */
  --light-bg: #F5F5F5;         /* Gris claro para fondos */
  --dark-bg: #212121;          /* Para modos oscuros */
  
  /* Textos */
  --text-on-primary: #FFFFFF;  /* Texto blanco sobre rojo */
  --text-on-light: #424242;    /* Texto oscuro sobre claro */
  --text-on-dark: #FFFFFF;     /* Texto claro sobre oscuro */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.products-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 90%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 179, 176, 0.2);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.product-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.product-card:hover .product-icon::after {
    opacity: 1;
    transform: scale(1);
}

.product-card:nth-child(3n+1) .product-icon {
    background: var(--gradient-primary);
}

.product-card:nth-child(3n+2) .product-icon {
    background: var(--gradient-secondary);
}

.product-card:nth-child(3n+3) .product-icon {
    background: var(--gradient-accent);
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.product-description {
    color: #666;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.3rem 0;
    color: #555;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.product-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-learn-more {
    width: 100%;
    padding: 10px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.btn-learn-more:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 179, 176, 0.3);
}

.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .product-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.certification-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
}

.certification-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.pac-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 179, 176, 0.3);
}

.certification-image {
    max-width: 300px;
    margin: 2rem auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-section {
    background: var(--gradient-dark);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 2;
}

.product-section {
    padding: 5rem 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 3rem;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-content {
    padding: 2.5rem;
}

.product-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: #555;
}

.product-features li i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.btn-cta {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 179, 176, 0.4);
    color: white;
    text-decoration: none;
}

.btn-cta-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-cta-light:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.register-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    position: relative;
}

.register-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.register-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.register-content {
    position: relative;
    z-index: 2;
}

.feature-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid white;
}

.stats-row {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .product-content {
        padding: 2rem 1.5rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .certification-card {
        padding: 2rem 1.5rem;
    }
}