/* Contasoluciones S.L. - Estilos principales */

/* Reset y variables */
:root {
  --primary-purple: #4A0060;
  --accent-orange: #FF6A3D;
  --light-sage: #C1F0DC;
  --dark-gray: #1F1F1F;
  --light-peach: #FFEAD0;
  --white: #ffffff;
  --shadow-light: 0 4px 20px rgba(74, 0, 96, 0.1);
  --shadow-medium: 0 8px 30px rgba(74, 0, 96, 0.15);
  --shadow-heavy: 0 15px 45px rgba(74, 0, 96, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background: linear-gradient(135deg, var(--primary-purple) 0%, #5A1070 100%);
  overflow-x: hidden;
}

/* Animaciones CSS */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Utilidades de animación */
.animate-slide-up {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.2s;
}

.animate-delay-2 {
  animation-delay: 0.4s;
}

.animate-delay-3 {
  animation-delay: 0.6s;
}

/* Header */
.header {
  background: rgba(74, 0, 96, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  fill: var(--accent-orange);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--accent-orange);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Main content */
.main {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-purple) 0%, #5A1070 50%, var(--accent-orange) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./img/glXdNK.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-orange), #FF8A5B);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

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

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--light-sage);
}

.section:nth-child(odd) {
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-purple);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, var(--accent-orange), var(--primary-purple));
  border-radius: 2px;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(45deg, var(--accent-orange), var(--primary-purple));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--accent-orange), var(--primary-purple));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

.card-price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.card-price span {
  font-size: 1rem;
  color: var(--dark-gray);
  font-weight: normal;
}

/* Form */
.form-container {
  background: var(--white);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.form-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-orange), var(--primary-purple), var(--accent-orange));
  border-radius: 25px;
  z-index: -1;
}

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

.form-label {
  display: block;
  font-weight: bold;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--light-sage);
  border-radius: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--primary-purple);
}

.checkbox-group label a {
  color: var(--accent-orange);
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  background: linear-gradient(45deg, var(--accent-orange), var(--primary-purple));
  color: var(--white);
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(74, 0, 96, 0.95);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-heavy);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-accept {
  background: var(--accent-orange);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-accept:hover {
  background: #e55a35;
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .form-container {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  /* Открепление шапки в мобильной версии */
  .header {
    position: relative;
  }
  
  .main {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
}

/* Páginas adicionales */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  line-height: 1.8;
}

.page-content h1 {
  color: var(--primary-purple);
  margin-bottom: 2rem;
}

.page-content h2 {
  color: var(--accent-orange);
  margin: 2rem 0 1rem;
}

.page-content p {
  margin-bottom: 1rem;
}

/* Efectos Glass */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* Hover effects para testimonios */
.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-purple);
}

/* Animación para el mapa */
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.map-container:hover {
  transform: scale(1.02);
}

/* Estilos para las páginas de política */
.legal-page {
  background: var(--light-sage);
  min-height: 100vh;
  padding: 2rem 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: var(--shadow-medium);
}

.legal-content h1 {
  color: var(--primary-purple);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  color: var(--accent-orange);
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  border-bottom: 2px solid var(--light-sage);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  color: var(--primary-purple);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}

.legal-content p, .legal-content li {
  margin-bottom: 1rem;
  line-height: 1.7;
  text-align: justify;
}

.legal-content ul, .legal-content ol {
  margin: 1rem 0 1rem 2rem;
}

.legal-content ul li {
  list-style-type: disc;
}

.legal-content strong {
  color: var(--primary-purple);
  font-weight: 600;
}

/* Botón de vuelta al inicio */
.back-to-home {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-orange), var(--primary-purple));
  color: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  margin: 2rem 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.back-to-home:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
} 