/*
Theme Name: Cosmos Servicios Theme
Theme URI: 
Author: Cosmos Servicios
Author URI: 
Description: Tema corporativo premium para Cosmos Servicios Industriales SpA.
Version: 1.0.1
Text Domain: cosmos-servicios
*/

:root {
  /* Core Brand Colors */
  --primary: #F1B500;
  --primary-hover: #D4A000;
  --primary-glow: rgba(241, 181, 0, 0.4);
  --dark: #0A1326; /* Deep premium navy */
  --darker: #060B18;
  --dark-panel: #121E3B; /* Slightly lighter navy for cards */
  --light: #F8F9FA;
  --text: #E0E6ED; /* Light text for dark backgrounds */
  --text-dark: #334155; /* Dark text for light backgrounds */
  --text-light: #94A3B8;
  
  /* Accents */
  --gold-gradient: linear-gradient(135deg, #F9D423 0%, #FF4E50 100%);
  --gold-gradient-subtle: linear-gradient(135deg, #F1B500 0%, #E69A00 100%);
  --border: rgba(255, 255, 255, 0.1);
  --white: #FFFFFF;

  /* Premium effects */
  --glass-bg: rgba(10, 19, 38, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(241, 181, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  line-height: 1.2;
}

.text-gradient {
  background: var(--gold-gradient-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

.subtitle {
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}



.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold-gradient-subtle);
  color: var(--darker);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-light {
  background-color: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Header (Glassmorphism) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary);
}

.logo h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 160px; /* Prevents overlap with feature bar on short screens */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 19, 38, 0.95) 0%, rgba(10, 19, 38, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 25px;
  color: var(--white);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 45px;
  color: var(--text-light);
  max-width: 650px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Premium Feature Bar */
.feature-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  z-index: 2;
}

.feature-bar-container {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}

.feature-item i {
  font-size: 2.5rem;
  background: var(--gold-gradient-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-item strong {
  display: block;
  font-size: 1.05rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.feature-item span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 3rem;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.about-image-wrapper {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-floating-box {
  position: absolute;
  bottom: -40px;
  left: -40px;
  background: var(--dark);
  color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.box-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.box-item:last-child { margin-bottom: 0; }

.box-item i {
  font-size: 2rem;
  color: var(--primary);
}

/* Services Grid (Dark Premium) */
.services {
  background-color: var(--darker);
  color: var(--white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services .section-header h2 {
  color: var(--white);
}

.services .section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-item {
  background: var(--dark-panel);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold-gradient-subtle);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(241, 181, 0, 0.3);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(241, 181, 0, 0.1);
  border: 1px solid rgba(241, 181, 0, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  background: var(--primary);
  color: var(--darker);
  transform: rotate(5deg) scale(1.1);
}

.service-item h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
}

.service-item ul li {
  color: var(--text-light);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.service-item ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.9rem;
}

/* Contact */
.contact {
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.contact-method:hover {
  transform: translateX(10px);
}

.contact-method i {
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(241, 181, 0, 0.1);
  padding: 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-method span {
  word-break: break-word;
  display: block;
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #F8FAFC;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(241, 181, 0, 0.1);
}

/* Footer */
.footer {
  background-color: var(--darker);
  color: var(--white);
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer-col-about p {
  color: var(--text-light);
  margin: 25px 0;
}

.social-links { display: flex; gap: 15px; }

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--dark-panel);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--darker);
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--white);
  letter-spacing: 1px;
}

.footer ul li { margin-bottom: 15px; }

.footer ul li a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-col-contact ul li {
  display: flex;
  gap: 15px;
  color: var(--text-light);
  align-items: center;
}

.footer-col-contact ul li i {
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 25px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .about-container { grid-template-columns: 1fr; gap: 50px; }
  .about-floating-box { bottom: -230px; left: 20px; right: 20px; }
  .about-image-wrapper { margin-bottom: 250px; }
  .contact-container { grid-template-columns: 1fr; gap: 50px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col-contact { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  
  .hero { 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    height: auto;
  }
  .hero-content { margin-bottom: 40px; width: 100%; }
  
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; margin-bottom: 30px; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 15px; }
  .hero-buttons .btn { width: 100%; }
  
  .logo h2 { font-size: 1.3rem; }
  
  .menu-toggle { display: block; }
  .header .btn-nav { display: none; }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 19, 38, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 20px 40px;
    gap: 15px;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links a {
    color: var(--white);
    font-size: 1.15rem;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }

  .feature-bar { display: none; }
  
  .about-text h2 { font-size: 2rem; }
  .section-header h2 { font-size: 2rem; }
  
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-item { padding: 30px 20px; }
  
  .contact-form { padding: 30px 20px; }
  .form-row { flex-direction: column; gap: 15px; }
  
  .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-col-about { align-items: center; display: flex; flex-direction: column; }
  .footer-col-about p { text-align: center; }
  .footer-col-contact ul li { justify-content: center; }
  .social-links { justify-content: center; }
}
