/* Corporate Color System */
:root {
  /* Corporate Color Palette */
  --primary-color: #0a4b2a;      /* Verde oscuro */
  --secondary-color: #0d7a3d;    /* Verde medio */
  --accent-color: #11914b;       /* Verde PETGAS */
  --accent-hover: #1abc9c;       /* Verde turquesa */
  --text-color: #f0fdf4;         /* Verde muy claro */
  
  /* Background Gradients */
  --bg-gradient-primary: linear-gradient(135deg, #0a4b2a, #0d7a3d);
  --bg-gradient-secondary: linear-gradient(90deg, rgba(10,75,42,0.9), rgba(13,122,61,0.8));
  --bg-gradient-accent: linear-gradient(45deg, #11914b, #1abc9c);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/03/fondo-web_2.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.section-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    color: var(--text-color);
    padding: 40px 20px;
}

/* Logo 3D Container */
.logo-3d-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.logo-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateLogo 10s ease-in-out infinite;
}

@keyframes rotateLogo {
    0% { transform: rotateY(0deg); }
    25% { transform: rotateY(45deg); }
    50% { transform: rotateY(0deg); }
    75% { transform: rotateY(-45deg); }
    100% { transform: rotateY(0deg); }
}

.logo-3d-front {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.logo-3d-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Efectos 3D */
.logo-3d-depth {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.logo-3d-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-color) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.logo-3d-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.logo-3d-shine-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
}

.logo-3d-shine {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(240, 253, 244, 0.4) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-3d-sparkle-1,
.logo-3d-sparkle-2 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--text-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.logo-3d-sparkle-1 {
    top: 20%;
    left: 30%;
    animation: sparkle1 2s infinite;
}

.logo-3d-sparkle-2 {
    top: 70%;
    right: 25%;
    animation: sparkle2 2.5s infinite;
}

@keyframes sparkle1 {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes sparkle2 {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.logo-3d-reflection {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 30%;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.3) 0%, transparent 50%);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.logo-3d-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    filter: blur(10px);
}

/* Textos del Hero */
.welcome-message {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px var(--accent-color); }
    to { text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-hover); }
}

.energetic-heading {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffeb3b, #ffc107, #ff9800, #ffeb3b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite, textPulse 2s ease-in-out infinite alternate;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px #ffc107, 0 0 60px #ff9800;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.energetic-heading:hover {
    transform: scale(1.05);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textPulse {
    from {
        text-shadow: 0 0 30px var(--accent-color), 0 0 60px var(--accent-color);
        filter: brightness(1);
    }
    to {
        text-shadow: 0 0 40px var(--accent-color), 0 0 80px var(--accent-hover), 0 0 100px var(--accent-color);
        filter: brightness(1.2);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-color);
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--bg-gradient-accent);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--accent-color);
    position: relative;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 253, 244, 0.4), transparent);
    transition: left 0.5s;
}

.hero-button:hover::before {
    left: 100%;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-hover);
    background: linear-gradient(45deg, var(--accent-hover), var(--accent-color));
}

/* Spinner */
.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-color);
    border-right: 4px solid var(--accent-hover);
    border-radius: 50%;
    animation: spin 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 0 20px var(--accent-color), inset 0 0 20px rgba(17, 145, 75, 0.2);
}

.spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-hover);
    border-radius: 50%;
    animation: spin 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(17, 145, 75, 0.5);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 20px 15px;
    }
    
    .logo-3d-container {
        width: 250px;
        height: 250px;
    }
    
    .logo-3d-image {
        width: 200px;
        height: 200px;
    }
    
    .welcome-message {
        font-size: 1.4rem;
    }
    
    .energetic-heading {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 30px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-3d-container {
        width: 200px;
        height: 200px;
    }
    
    .logo-3d-image {
        width: 150px;
        height: 150px;
    }
    
    .welcome-message {
        font-size: 1.2rem;
    }
    
    .energetic-heading {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 25px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-button {
        padding: 10px 25px;
        font-size: 0.8rem;
    }
}
