/* 
* The Tower School - Estilos principales
* Basado en el diseño de London School
*/

/* Variables de colores - Actualizadas según el logo de The Tower School */
:root {
  --primary-color: #5d5d5d;      /* Gris - color exacto del logo para textos */
  --secondary-color: #dfdc1f;    /* Amarillo - color exacto del logo para acentos */
  --accent-color: #dfdc1f;       /* Amarillo - color exacto del logo para destacados */
  --text-color: #5d5d5d;         /* Gris - color exacto del logo para textos principales */
  --light-text: #ffffff;         /* Texto claro - mantenido para contraste */
  --light-bg: #f9f9f9;           /* Fondo claro - gris muy suave */
  --dark-bg: #3d3d3d;            /* Fondo oscuro - gris más oscuro derivado del logo */
  --border-color: #d8d8d8;       /* Color de bordes - gris claro derivado del logo */
  --success-color: #dfdc1f;      /* Color de éxito - amarillo del logo */
  --error-color: #dfdc1f;        /* Color de error - cambiado a amarillo del logo */
  --hover-color: #c5c31b;        /* Color para efectos hover - amarillo más oscuro derivado del logo */
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-color);
}

ul {
  list-style: none;
}

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

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-text);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Encabezados */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

/* Header */
.header {
  background-color: var(--light-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

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

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  font-weight: 500;
  position: relative;
}

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

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

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  color: var(--light-text);
  text-align: center;
  height: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(93, 93, 93, 0.85), rgba(61, 61, 61, 0.85));
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--light-text);
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--light-text);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--light-text);
}

.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Courses Section */
.courses {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.courses h2 {
  text-align: center;
  margin-bottom: 50px;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: var(--light-text);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card h3, .course-card p {
  padding: 0 20px;
}

.course-card h3 {
  margin-top: 20px;
}

.course-card .btn {
  margin: 20px;
}

/* Study Options Section */
.study-options {
  padding: 80px 0;
  background-color: var(--light-text);
}

.study-options h2 {
  text-align: center;
  margin-bottom: 50px;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.option-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.option-card:hover {
  transform: translateY(-10px);
}

.option-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.option-card h3, .option-card p {
  padding: 0 20px;
}

.option-card h3 {
  margin-top: 20px;
}

.option-card .btn {
  margin: 20px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto 40px;
}

.testimonial {
  padding: 30px;
  background-color: var(--light-text);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.testimonial p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

/* English Test Section */
.english-test {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  color: var(--light-text);
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.english-test h2 {
  color: var(--light-text);
}

.english-test p {
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Upcoming Courses Section */
.upcoming-courses {
  padding: 80px 0;
  background-color: var(--light-text);
}

.upcoming-courses h2 {
  text-align: center;
  margin-bottom: 50px;
}

.course-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.event {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event h3 {
  color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 20px;
}

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

.footer-column h3 {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--light-text);
  opacity: 0.8;
}

.footer-column a:hover {
  opacity: 1;
}

.social-media {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-media a:hover {
  background-color: var(--secondary-color);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .feature-item, 
  .course-card, 
  .option-card, 
  .event {
    padding: 15px;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}
